mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
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
This commit is contained in:
@@ -81,8 +81,7 @@ class Cliconf(CliconfBase):
|
|||||||
answer = None
|
answer = None
|
||||||
newline = True
|
newline = True
|
||||||
|
|
||||||
self.send_command(to_bytes(command), to_bytes(prompt), to_bytes(answer),
|
self.send_command(command, prompt, answer, False, newline)
|
||||||
False, newline)
|
|
||||||
|
|
||||||
def get(self, command, prompt=None, answer=None, sendonly=False):
|
def get(self, command, prompt=None, answer=None, sendonly=False):
|
||||||
return self.send_command(command, prompt=prompt, answer=answer, sendonly=sendonly)
|
return self.send_command(command, prompt=prompt, answer=answer, sendonly=sendonly)
|
||||||
|
|||||||
Reference in New Issue
Block a user