improve a bwrap test

This commit is contained in:
Ryan Petrello
2018-02-12 10:14:37 -05:00
parent b38be89d1a
commit 194c2dcf0b
2 changed files with 5 additions and 3 deletions

View File

@@ -803,8 +803,6 @@ def wrap_args_with_proot(args, cwd, **kwargs):
if not os.path.exists(path):
continue
path = os.path.realpath(path)
if os.path.isdir(path):
path = os.path.join(path, '') # add a trailing slash
new_args.extend(['--bind', '%s' % (path,), '%s' % (path,)])
if kwargs.get('isolated'):
if 'ansible-playbook' in args: