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:
Deepak Agrawal 2018-05-24 13:18:29 +05:30 committed by GitHub
commit ea4a78b2a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

View file

@ -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'))