]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
fix for nested rootwrap checks with 'ip netns exec'
authorDan Wendlandt <dan@nicira.com>
Mon, 17 Sep 2012 17:35:51 +0000 (10:35 -0700)
committerDan Wendlandt <dan@nicira.com>
Mon, 17 Sep 2012 17:35:51 +0000 (10:35 -0700)
bug 1051525

Change-Id: Ia52060afec1c573c8f11d658af88cea7e000d774

quantum/rootwrap/filters.py

index 189ab7a20bc72326473b4dd3a4fb7b83db511dbc..976598a6c93d68459df0af50eff09fd721081607 100644 (file)
@@ -193,4 +193,7 @@ class IpNetnsExecFilter(ExecCommandFilter):
             return False
 
     def exec_args(self, userargs):
-        return userargs[4:]
+        args = userargs[4:]
+        if args:
+            args[0] = os.path.basename(args[0])
+        return args