From 4ad8c6ff40cff98d813801b417389cf028513e2d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 10 Apr 2014 13:49:59 -0400 Subject: [PATCH] For resource paths short enough, assume a collection name rather than resource name --- confluent/pluginapi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent/pluginapi.py b/confluent/pluginapi.py index 3015ec69..4f7f2099 100644 --- a/confluent/pluginapi.py +++ b/confluent/pluginapi.py @@ -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)