mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07:00
Plumb newline param on cliconf (#34868)
Change cb1b705218
introduced the newline
parameter on network_cli plugin, but that was never introduced on cliconf.
This causes ios_user to break, since the newline value is never plumbed thru
to network_cli
This commit is contained in:
parent
74eb0bfb13
commit
9851a0540f
2 changed files with 7 additions and 3 deletions
|
@ -75,12 +75,15 @@ class Cliconf(CliconfBase):
|
|||
command = cmd['command']
|
||||
prompt = cmd['prompt']
|
||||
answer = cmd['answer']
|
||||
newline = cmd.get('newline', True)
|
||||
except:
|
||||
command = cmd
|
||||
prompt = None
|
||||
answer = None
|
||||
newline = True
|
||||
|
||||
self.send_command(to_bytes(command), to_bytes(prompt), to_bytes(answer))
|
||||
self.send_command(to_bytes(command), to_bytes(prompt), to_bytes(answer),
|
||||
False, newline)
|
||||
|
||||
def get(self, command, prompt=None, answer=None, sendonly=False):
|
||||
return self.send_command(to_bytes(command), prompt=to_bytes(prompt),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue