mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #8458 from Jmainguy/runner_8404
Fixes 8362, returns stderr if No space left on device
This commit is contained in:
commit
4940a7ad77
1 changed files with 2 additions and 0 deletions
|
@ -1103,6 +1103,8 @@ class Runner(object):
|
||||||
output = 'SSH encountered an unknown error. The output was:\n%s' % (result['stdout']+result['stderr'])
|
output = 'SSH encountered an unknown error. The output was:\n%s' % (result['stdout']+result['stderr'])
|
||||||
else:
|
else:
|
||||||
output = 'SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue'
|
output = 'SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue'
|
||||||
|
elif 'No space left on device' in result['stderr']:
|
||||||
|
output = result['stderr']
|
||||||
else:
|
else:
|
||||||
output = 'Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in "/tmp". Failed command was: %s, exited with result %d' % (cmd, result['rc'])
|
output = 'Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in "/tmp". Failed command was: %s, exited with result %d' % (cmd, result['rc'])
|
||||||
if 'stdout' in result and result['stdout'] != '':
|
if 'stdout' in result and result['stdout'] != '':
|
||||||
|
|
Loading…
Reference in a new issue