-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changed: false always #49
Comments
This comes from https://github.com/ansible-collections/community.routeros/blob/main/plugins/modules/command.py#L171, and is definitely wrong. It's good that we are still preparing 2.0.0, so we can add another breaking change :) |
It's odd.. it looks like that line has never changed, but I could've sworn there was a point in time this collection would report if things actually changed.. |
It looks like the command module never did that. You can of course use In fact the correct behavior would be to always indicate changed=true, since it's impossible to know when something really changed. Determining this is the job of the caller. (This is true for basically all command modules for all operating systems, since it is impossible to say for an arbitrary command whether there has been a change or not.) |
I created a fix in #50. |
SUMMARY
Runs with
community.routeros.command
never showed changed even though things are changing.ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
Ansible will report a change.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: