From: Dan Wendlandt Date: Mon, 17 Sep 2012 17:35:51 +0000 (-0700) Subject: fix for nested rootwrap checks with 'ip netns exec' X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a80d8b03421f0d920eaa336f3389ad2cad4f032b;p=openstack-build%2Fneutron-build.git fix for nested rootwrap checks with 'ip netns exec' bug 1051525 Change-Id: Ia52060afec1c573c8f11d658af88cea7e000d774 --- diff --git a/quantum/rootwrap/filters.py b/quantum/rootwrap/filters.py index 189ab7a20..976598a6c 100644 --- a/quantum/rootwrap/filters.py +++ b/quantum/rootwrap/filters.py @@ -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