1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

More network_debug_troubleshooting.html (#23335)

More "unable to open shell" -> network_debug_troubleshooting.html
This commit is contained in:
John R Barker 2017-04-06 12:39:59 +01:00 committed by GitHub
parent dff35bc205
commit 13dc02d49d
2 changed files with 8 additions and 2 deletions

View file

@ -86,7 +86,10 @@ class ActionModule(_ActionModule):
rc, out, err = connection.exec_command('open_shell()')
if rc != 0:
return {'failed': True, 'msg': 'unable to connect to control socket'}
return {'failed': True,
'msg': 'unable to open shell. Please see: ' +
'https://docs.ansible.com/ansible/network_debug_troubleshooting.html#unable-to-open-shell',
'rc': rc}
elif pc.connection == 'network_cli':
# make sure we are in the right cli context which should be

View file

@ -71,7 +71,10 @@ class ActionModule(_ActionModule):
# start the connection if it isn't started
rc, out, err = connection.exec_command('open_shell()')
if not rc == 0:
return {'failed': True, 'msg': 'unable to open shell', 'rc': rc}
return {'failed': True,
'msg': 'unable to open shell. Please see: ' +
'https://docs.ansible.com/ansible/network_debug_troubleshooting.html#unable-to-open-shell',
'rc': rc}
task_vars['ansible_socket'] = socket_path