summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ansible/module_utils/ios.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/ios.py b/lib/ansible/module_utils/ios.py
index 64a56a3a8e..6261c785b9 100644
--- a/lib/ansible/module_utils/ios.py
+++ b/lib/ansible/module_utils/ios.py
@@ -56,7 +56,8 @@ class Cli(object):
try:
self.shell.open(host, port=port, username=username, password=password)
except Exception, exc:
- self.module.fail_json('Failed to connect to {0}:{1} - {2}'.format(host, port, str(exc)))
+ msg = 'failed to connecto to %s:%s - %s' % (host, port, str(exc))
+ self.module.fail_json(msg=msg)
def authorize(self):
passwd = self.module.params['auth_pass']