mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
More informative error message on failure to resolve tmpdir
This commit is contained in:
parent
1a7a779e88
commit
5fcbfa984d
1 changed files with 3 additions and 1 deletions
|
@ -726,7 +726,9 @@ class Runner(object):
|
||||||
# Catch any other failure conditions here; files should never be
|
# Catch any other failure conditions here; files should never be
|
||||||
# written directly to /.
|
# written directly to /.
|
||||||
if rc == '/':
|
if rc == '/':
|
||||||
raise errors.AnsibleError('refusing to use / as a temporary directory.')
|
raise errors.AnsibleError('failed to resolve remote temporary '
|
||||||
|
'directory from %s: `%s` returned '
|
||||||
|
'empty string' % (basetmp, cmd))
|
||||||
return rc
|
return rc
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue