From 8a6059ad0a5c9e96adb24f9dec1da9687a415045 Mon Sep 17 00:00:00 2001 From: Sumit Jaiswal Date: Mon, 15 Oct 2018 15:35:55 +0530 Subject: [PATCH] revert 46677 changes (#47044) --- lib/ansible/plugins/terminal/ios.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/plugins/terminal/ios.py b/lib/ansible/plugins/terminal/ios.py index 9179b8a3a4c..c108e91257b 100644 --- a/lib/ansible/plugins/terminal/ios.py +++ b/lib/ansible/plugins/terminal/ios.py @@ -58,8 +58,7 @@ class TerminalModule(TerminalBase): raise AnsibleConnectionFailure('unable to set terminal parameters') def on_become(self, passwd=None): - conn_prompt = self._get_prompt() - if not conn_prompt or conn_prompt.endswith(b'#'): + if self._get_prompt().endswith(b'#'): return cmd = {u'command': u'enable'}