More network_debug_troubleshooting.html (#23335) (#23341)

More "unable to open shell" -> network_debug_troubleshooting.html
(cherry picked from commit 13dc02d49d)
pull/23355/head
John R Barker 8 years ago committed by GitHub
parent 84d09cdf32
commit 0da250c9f1

@ -85,7 +85,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

@ -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

Loading…
Cancel
Save