2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-17 21:23:18 +00:00

Amend core to pass shell objects through

For 'handler' plugin definitions, also recognize
the 'console' exception to allow the plugin to pass
through to the shellserver infrastructure.
This commit is contained in:
Jarrod Johnson 2016-01-06 10:06:09 -05:00
parent c8e5644061
commit 3d926bb264

View File

@ -170,7 +170,7 @@ noderesources = {
'_shell': {
'session': PluginRoute({
# For now, not configurable, wait until there's demand
'default': 'ssh',
'handler': 'ssh',
})
},
'shell': {
@ -530,6 +530,8 @@ def handle_node_request(configmanager, inputdata, operation,
inputdata=inputdata)
if isnoderange:
return passvalue
elif isinstance(passvalue, console.Console):
return passvalue
else:
return stripnode(passvalue, nodes[0])
elif 'pluginattrs' in plugroute: