mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
For resource paths short enough, assume a collection name rather than resource name
This commit is contained in:
parent
0ab31694d5
commit
4ad8c6ff40
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user