diff options
author | Peter Sprygada <psprygada@ansible.com> | 2016-02-09 14:34:17 -0500 |
---|---|---|
committer | Peter Sprygada <psprygada@ansible.com> | 2016-02-17 16:17:51 +0000 |
commit | 96a35607057479258bd797a2aa8dc775151eee93 (patch) | |
tree | b197b0178e8beca63545920b86caac665dd6a904 | |
parent | 34eabbe7e3fbfaa3471462847040c09477ec523c (diff) | |
download | ansible-modules-core-96a35607057479258bd797a2aa8dc775151eee93.tar.gz |
update nxos_config doc strings and return values
This commit unifys the return values for the nxos_config module to always
return updates and responses
-rw-r--r-- | network/nxos/nxos_config.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/network/nxos/nxos_config.py b/network/nxos/nxos_config.py index d2492877..beffa20e 100644 --- a/network/nxos/nxos_config.py +++ b/network/nxos/nxos_config.py @@ -142,19 +142,17 @@ EXAMPLES = """ """ 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 - returned: always + retured: when not check_mode type: list sample: ['...', '...'] - """ import re import itertools @@ -258,10 +256,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 * |