From 8824387cf88d0303969c930bb0a9d52294e73b9f Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 22 Feb 2017 12:20:18 -0500 Subject: [PATCH] fixes ios_command to_command method (#21792) Changes key from response to answer to match expected payload fixes #21791 --- lib/ansible/module_utils/ios.py | 2 +- lib/ansible/modules/network/ios/ios_command.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/ios.py b/lib/ansible/module_utils/ios.py index 62fdefa87f..4cd511a5c7 100644 --- a/lib/ansible/module_utils/ios.py +++ b/lib/ansible/module_utils/ios.py @@ -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) diff --git a/lib/ansible/modules/network/ios/ios_command.py b/lib/ansible/modules/network/ios/ios_command.py index aff88400f4..a93d9b58ab 100644 --- a/lib/ansible/modules/network/ios/ios_command.py +++ b/lib/ansible/modules/network/ios/ios_command.py @@ -168,7 +168,6 @@ def main(): """main entry point for module execution """ argument_spec = dict( - # { command: , prompt: , response: } commands=dict(type='list', required=True), wait_for=dict(type='list', aliases=['waitfor']),