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
This commit is contained in:
parent
ef89e0eee6
commit
d8615683e5
1 changed files with 5 additions and 7 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Reference in a new issue