From 25d724a88d8c272e2f43ac26ef6e21ee6df620f2 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Tue, 9 Feb 2016 14:32:01 -0500 Subject: [PATCH] update ios_template doc strings and return values Sets the return values from ios_template to be consistent with the rest of the network modules. Return values are now updates and responses --- lib/ansible/modules/network/ios/ios_template.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/ansible/modules/network/ios/ios_template.py b/lib/ansible/modules/network/ios/ios_template.py index 9ddf31c7e1c..b0a2bf9efb1 100644 --- a/lib/ansible/modules/network/ios/ios_template.py +++ b/lib/ansible/modules/network/ios/ios_template.py @@ -90,7 +90,6 @@ options: """ EXAMPLES = """ - - name: push a configuration onto the device net_config: src: config.j2 @@ -104,18 +103,20 @@ EXAMPLES = """ net_config: src: candidate_config.txt config: current_config.txt - - """ RETURN = """ - -commands: +updates: description: The set of commands that will be pushed to the remote device returned: always type: list - sample: [...] + sample: ['...', '...'] +responses: + description: The set of responses from issuing the commands on the device + retured: when not check_mode + type: list + sample: ['...', '...'] """ def compare(this, other, ignore_missing=False): @@ -202,9 +203,10 @@ def main(): if not module.check_mode: commands = [str(c).strip() for c in commands] response = module.configure(commands) + result['responses'] = response result['changed'] = True - result['commands'] = commands + result['updates'] = commands return module.exit_json(**result)