From 100c06e5a57cf41bd1d7277850fd07d4cbc7c2d9 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 9 Sep 2013 13:42:13 -0400 Subject: [PATCH] Fix problem where plugin api failed to access the node specific dict --- confluent/pluginapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent/pluginapi.py b/confluent/pluginapi.py index 638a6376..d0033063 100644 --- a/confluent/pluginapi.py +++ b/confluent/pluginapi.py @@ -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)