Add working dir to error message

Change-Id: Ia576c0160b0f909d199d13f355d50c1697947382
This commit is contained in:
Monty Taylor 2017-02-23 11:48:50 -05:00
parent e81ba6320c
commit 1954d3528b
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -32,8 +32,9 @@ def _fail_dict(path, prefix='Accessing files from'):
return dict(
failed=True,
path=path,
msg="{prefix} outside the working dir is prohibited".format(
prefix=prefix))
msg="{prefix} outside the working dir {curdir} is prohibited".format(
prefix=prefix,
curdir=os.path.abspath(os.path.curdir)))
def _import_ansible_action_plugin(name):