2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Fix attributes plugin for api rename

This commit is contained in:
Jarrod Johnson 2014-03-28 15:29:48 -04:00
parent f7321f4e70
commit f326a03d33

View File

@ -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")