From f2818caa61669bb6e41c98c7a686dfd6b6ead0b9 Mon Sep 17 00:00:00 2001 From: bdowling <bjd-dev@simplicity.net> Date: Fri, 16 Feb 2018 10:37:01 -0500 Subject: [PATCH] Fix None stringification call to send_command (#36254) send_command already performs the to_bytes safely on prompts (checking for None). Without this check the literal 'None' became a subprompt trigger! Fixes #35662 --- lib/ansible/plugins/cliconf/ios.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/plugins/cliconf/ios.py b/lib/ansible/plugins/cliconf/ios.py index eb9618e3a5..6f3fe20651 100644 --- a/lib/ansible/plugins/cliconf/ios.py +++ b/lib/ansible/plugins/cliconf/ios.py @@ -81,8 +81,7 @@ class Cliconf(CliconfBase): answer = None newline = True - self.send_command(to_bytes(command), to_bytes(prompt), to_bytes(answer), - False, newline) + self.send_command(command, prompt, answer, False, newline) def get(self, command, prompt=None, answer=None, sendonly=False): return self.send_command(command, prompt=prompt, answer=answer, sendonly=sendonly)