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
reviewable/pr18780/r1
Peter Sprygada 9 years ago
parent ca2ae67794
commit e010a7b240

@ -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)

Loading…
Cancel
Save