1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixes ios_command to_command method (#21792)

Changes key from response to answer to match expected payload

fixes #21791
This commit is contained in:
Peter Sprygada 2017-02-22 12:20:18 -05:00 committed by John R Barker
parent 58ee661437
commit 8824387cf8
2 changed files with 1 additions and 2 deletions

View file

@ -69,7 +69,7 @@ def to_commands(module, commands):
spec = {
'command': dict(key=True),
'prompt': dict(),
'response': dict()
'answer': dict()
}
transform = ComplexList(spec, module)
return transform(commands)

View file

@ -168,7 +168,6 @@ def main():
"""main entry point for module execution
"""
argument_spec = dict(
# { command: <str>, prompt: <str>, response: <str> }
commands=dict(type='list', required=True),
wait_for=dict(type='list', aliases=['waitfor']),