2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 12:17:47 +00:00

Fix problem with an unhandled command without a default.

This commit is contained in:
Jarrod Johnson 2013-11-02 13:30:29 -04:00
parent a8d0ec4c3c
commit 67fe18fe3f

View File

@ -98,7 +98,7 @@ def handle_path(path, operation, configmanager):
passvalue = pluginmap[nodeattr[node][attrname]['value']].__dict__[operation](
nodes=(node,), element=element,
configmanager=configmanager)
if plugroute['default']:
if 'default' in plugroute:
passvalue = pluginmap[plugroute['default']].__dict__[operation](
nodes=(node,), element=element, configmanager=configmanager)
if isinstance(passvalue, console.Console):