mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
iosxr_command does not work with prompt and answer arguments (#40475)
* mismatch type between function arguments * add testcase for prompt * yamllint issues * remove overwriting response in case of connectionError exception * remove import of ConnectionError as it is not required
This commit is contained in:
parent
3fd9c46828
commit
ea4a78b2a1
2 changed files with 26 additions and 1 deletions
|
@ -454,7 +454,7 @@ def run_command(module, commands):
|
|||
sendonly = False
|
||||
newline = True
|
||||
|
||||
out = conn.get(command, prompt=prompt, answer=answer, sendonly=sendonly, newline=newline)
|
||||
out = conn.get(command=command, prompt=prompt, answer=answer, sendonly=sendonly, newline=newline)
|
||||
|
||||
try:
|
||||
responses.append(to_text(out, errors='surrogate_or_strict'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue