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

Correct problem where path element was not parsed correctly

This commit is contained in:
Jarrod Johnson 2013-09-09 13:34:22 -04:00
parent 5451fa65e5
commit f23e67618b

View File

@ -78,7 +78,7 @@ def handle_path(path, operation, configmanager):
path.startswith("/vm/")):
nodeidx = path.find("/",1) + 1
node = path[nodeidx:]
node, _, element = path.partition("/")
node, _, element = node.partition("/")
if element not in nodeelements:
raise Exception("Invalid element requested")
plugroute = nodeelements[element]