From 8303eadff194e515e9427d01d4242a9a5c4dd9f6 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Tue, 9 Feb 2016 14:33:33 -0500 Subject: [PATCH] update eos_config doc string and return values This change update the return values from eos_config to be consistent with all network config modules. This will now return updates and responses from the module --- lib/ansible/modules/network/eos/eos_config.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/ansible/modules/network/eos/eos_config.py b/lib/ansible/modules/network/eos/eos_config.py index ce2bbf072b..1b4ae4e136 100644 --- a/lib/ansible/modules/network/eos/eos_config.py +++ b/lib/ansible/modules/network/eos/eos_config.py @@ -137,23 +137,20 @@ EXAMPLES = """ parents: ['ip access-list test'] before: ['no ip access-list test'] replace: block - """ RETURN = """ - -lines: +updates: description: The set of commands that will be pushed to the remote device returned: always type: list sample: ['...', '...'] -response: +responses: description: The set of responses from issuing the commands on the device retured: always type: list sample: ['...', '...'] - """ import re import itertools @@ -258,10 +255,10 @@ def main(): if not module.check_mode: response = module.configure(candidate) - result['response'] = response + result['responses'] = response result['changed'] = True - result['lines'] = candidate + result['updates'] = candidate return module.exit_json(**result) from ansible.module_utils.basic import *