2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-18 05:33:17 +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 0e821a7bfe
commit 0df21ddeb0

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: