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:
parent
b185d50f87
commit
100c06e5a5
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user