Skip to content

Commit

Permalink
Fix None stringification call to send_command (ansible#36254)
Browse files Browse the repository at this point in the history
send_command already performs the to_bytes safely on prompts (checking
for None).  Without this check the literal 'None' became a subprompt trigger!

Fixes ansible#35662
  • Loading branch information
bdowling authored and Qalthos committed Feb 16, 2018
1 parent 6a3fd92 commit f2818ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ansible/plugins/cliconf/ios.py
Expand Up @@ -81,8 +81,7 @@ def edit_config(self, command):
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)
Expand Down

0 comments on commit f2818ca

Please sign in to comment.