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:
parent
0e821a7bfe
commit
0df21ddeb0
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user