mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
Fix vyos sending 'None'
to device (#33889)
* Fix vyos sending `'None'` to device * Move bytes handling into common cliconf code
This commit is contained in:
parent
22001797a8
commit
f71bbdfed5
2 changed files with 9 additions and 2 deletions
|
@ -59,7 +59,7 @@ class Cliconf(CliconfBase):
|
|||
self.send_command(to_bytes(cmd))
|
||||
|
||||
def get(self, command, prompt=None, answer=None, sendonly=False):
|
||||
return self.send_command(to_bytes(command), prompt=to_bytes(prompt), answer=to_bytes(answer), sendonly=sendonly)
|
||||
return self.send_command(command, prompt=prompt, answer=answer, sendonly=sendonly)
|
||||
|
||||
def commit(self, comment=None):
|
||||
if comment:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue