From f326a03d33b412aed2dc2246c2b03701e48d7479 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 28 Mar 2014 15:29:48 -0400 Subject: [PATCH] Fix attributes plugin for api rename --- plugins/configuration/attributes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/configuration/attributes.py b/plugins/configuration/attributes.py index 43b99661..a56694d5 100644 --- a/plugins/configuration/attributes.py +++ b/plugins/configuration/attributes.py @@ -5,7 +5,7 @@ import confluent.config.attributes as allattributes def retrieve(nodes, element, configmanager, inputdata): if nodes is not None: return retrieve_nodes(nodes, element, configmanager, inputdata) - elif element[0] == 'nodegroup': + elif element[0] == 'groups': return retrieve_nodegroup(element[1], element[3], configmanager, inputdata) @@ -115,7 +115,7 @@ def retrieve_nodes(nodes, element, configmanager, inputdata): def update(nodes, element, configmanager, inputdata): if nodes is not None: return update_nodes(nodes, element, configmanager, inputdata) - elif element[0] == 'nodegroup': + elif element[0] == 'groups': return update_nodegroup(element[1], element[3], configmanager, inputdata) raise Exception("This line should never be reached")