From 7c7754d31956880b76b91dd98f9a47ea54d9e9e8 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sat, 22 Feb 2014 21:22:45 -0500 Subject: [PATCH] If specifying an attribute as a resource, strip the path info to make it work. --- bin/confetty | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/confetty b/bin/confetty index fbbaf7df..fe97c455 100755 --- a/bin/confetty +++ b/bin/confetty @@ -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:]