summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/action/sros.py
diff options
context:
space:
mode:
authorJohn R Barker <john@johnrbarker.com>2017-04-06 12:39:59 +0100
committerGitHub <noreply@github.com>2017-04-06 12:39:59 +0100
commit13dc02d49dc29842db725a725e5439978649fff1 (patch)
treeda23a6e2c326c7c97394590da384ea728b6a0222 /lib/ansible/plugins/action/sros.py
parentdff35bc205c176a2f9b187e9849b96d311e1e141 (diff)
downloadansible-13dc02d49dc29842db725a725e5439978649fff1.tar.gz
More network_debug_troubleshooting.html (#23335)
More "unable to open shell" -> network_debug_troubleshooting.html
Diffstat (limited to 'lib/ansible/plugins/action/sros.py')
-rw-r--r--lib/ansible/plugins/action/sros.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/sros.py b/lib/ansible/plugins/action/sros.py
index 49738cd0ce..c3fa842c5b 100644
--- a/lib/ansible/plugins/action/sros.py
+++ b/lib/ansible/plugins/action/sros.py
@@ -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