mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
If specifying an attribute as a resource, strip the path info to make it work.
This commit is contained in:
parent
f7c1dc8385
commit
7c7754d319
@ -240,6 +240,9 @@ def do_command(command, server):
|
||||
def setvalues(attribs):
|
||||
if '=' in attribs[0]: # going straight to attribute
|
||||
resource = attribs[0][:attribs[0].index("=")]
|
||||
if '/' in resource:
|
||||
lastslash = resource.rindex('/')
|
||||
attribs[0] = attribs[0][lastslash + 1:]
|
||||
else: # an actual resource
|
||||
resource = attribs[0]
|
||||
attribs = attribs[1:]
|
||||
|
Loading…
Reference in New Issue
Block a user