mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-21 09:35:45 +02:00
Make command always return changed=true. (#50)
This commit is contained in:
parent
5042905471
commit
f9d246cd7a
3 changed files with 12 additions and 7 deletions
|
@ -15,6 +15,9 @@ description:
|
|||
read from the device. This module includes an
|
||||
argument that will cause the module to wait for a specific condition
|
||||
before returning or timing out if the condition is not met.
|
||||
- The module always indicates a (changed) status. You can use
|
||||
R(the changed_when task property,override_the_changed_result) to determine
|
||||
whether a command task actually resulted in a change or not.
|
||||
options:
|
||||
commands:
|
||||
description:
|
||||
|
@ -168,7 +171,7 @@ def main():
|
|||
module.fail_json(msg=msg, failed_conditions=failed_conditions)
|
||||
|
||||
result.update({
|
||||
'changed': False,
|
||||
'changed': True,
|
||||
'stdout': responses,
|
||||
'stdout_lines': list(to_lines(responses))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue