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

For resource paths short enough, assume a collection name rather than resource name

This commit is contained in:
Jarrod Johnson 2014-04-10 13:49:59 -04:00
parent 0ab31694d5
commit 4ad8c6ff40

View File

@ -225,6 +225,8 @@ def handle_path(path, operation, configmanager, inputdata=None):
inputdata = msg.InputAttributes(pathcomponents, inputdata)
create_group(inputdata.attribs, configmanager)
return iterate_collections(configmanager.get_groups())
if len(pathcomponents) == 2:
iscollection = True
if iscollection:
if operation == "delete":
return delete_nodegroup_collection(pathcomponents, configmanager)