fixs command dict to be sent to connection socket (#21713)

There as an invalid key in the command dict that would cause failure
using prompts.  This changes the key from response to answer which is
what is expected by network_cli
This commit is contained in:
Peter Sprygada 2017-02-22 09:44:04 -05:00 committed by GitHub
parent 6e7b89764e
commit 9e6980a039
9 changed files with 7 additions and 11 deletions

View file

@ -148,7 +148,7 @@ def parse_commands(module, warnings):
command = ComplexList(dict(
command=dict(key=True),
prompt=dict(),
response=dict()
answer=dict()
), module)
commands = command(module.params['commands'])
for index, item in enumerate(commands):