mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
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
This commit is contained in:
parent
eb5f9c216b
commit
8303eadff1
1 changed files with 4 additions and 7 deletions
|
@ -137,23 +137,20 @@ EXAMPLES = """
|
||||||
parents: ['ip access-list test']
|
parents: ['ip access-list test']
|
||||||
before: ['no ip access-list test']
|
before: ['no ip access-list test']
|
||||||
replace: block
|
replace: block
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = """
|
RETURN = """
|
||||||
|
updates:
|
||||||
lines:
|
|
||||||
description: The set of commands that will be pushed to the remote device
|
description: The set of commands that will be pushed to the remote device
|
||||||
returned: always
|
returned: always
|
||||||
type: list
|
type: list
|
||||||
sample: ['...', '...']
|
sample: ['...', '...']
|
||||||
|
|
||||||
response:
|
responses:
|
||||||
description: The set of responses from issuing the commands on the device
|
description: The set of responses from issuing the commands on the device
|
||||||
retured: always
|
retured: always
|
||||||
type: list
|
type: list
|
||||||
sample: ['...', '...']
|
sample: ['...', '...']
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import re
|
import re
|
||||||
import itertools
|
import itertools
|
||||||
|
@ -258,10 +255,10 @@ def main():
|
||||||
|
|
||||||
if not module.check_mode:
|
if not module.check_mode:
|
||||||
response = module.configure(candidate)
|
response = module.configure(candidate)
|
||||||
result['response'] = response
|
result['responses'] = response
|
||||||
result['changed'] = True
|
result['changed'] = True
|
||||||
|
|
||||||
result['lines'] = candidate
|
result['updates'] = candidate
|
||||||
return module.exit_json(**result)
|
return module.exit_json(**result)
|
||||||
|
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue