2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Fix problem where plugin api failed to access the node specific dict

This commit is contained in:
Jarrod Johnson 2013-09-09 13:42:13 -04:00
parent b185d50f87
commit 100c06e5a5

View File

@ -86,8 +86,8 @@ def handle_path(path, operation, configmanager):
nodeattr = configmanager.get_node_attributes(
[node], plugroute['pluginattrs'])
for attrname in plugroute['pluginattrs']:
if attrname in nodeattr:
return pluginmap[nodeattr[attrname]].__dict__[operation](
if attrname in nodeattr[node]:
return pluginmap[nodeattr[node][attrname]['value']].__dict__[operation](
node=(node), operation=operation,
configmanager=configmanager)