fixes ios_command to_command method (#21792)

Changes key from response to answer to match expected payload

fixes #21791
pull/21800/head
Peter Sprygada 8 years ago committed by John R Barker
parent 58ee661437
commit 8824387cf8

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

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

Loading…
Cancel
Save