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:
Nathaniel Case
2017-12-15 11:20:53 -05:00
committed by GitHub
parent 22001797a8
commit f71bbdfed5
2 changed files with 9 additions and 2 deletions

View File

@@ -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: