-
Notifications
You must be signed in to change notification settings - Fork 141
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
Fix changed_when statement in all roles to show correct state and dis… #815
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree this is a good change. I can see how we haven't spotted it before as well. I think we should add some check_mode testing to the tests to prove this out. If you fancy doing that, then great, otherwise I can raise an issue to fix that afterwards.
The only change I will request here though is that you add a changelog fragment (create a file under changelogs/fragments
with a bugfixes
item describing this change. You'll find similar examples in that directory.)
Thanks for your contribution
@keilr thank you for contributing back to the community, if you could just add the changeling as Tom requested we can get this merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added the changelog myself and this should be all good now. I'll raise a separate issue to add testing
@Tompage1994 @djdanielsson thanks a lot for your feedback and for adding the changelog. Sorry for the delay, I was on vacation 🏖️ |
What does this PR do?
In order to display diff output and correct changed state,
changed_when
statement needs to be set properly.Currently
changed
is just inverted with thenot
operator, which doesn't make sense.How should this be tested?
We tested this in our environment. Please let me know if I can help you in adding automated tests.
Is there a relevant Issue open for this?
No
Other Relevant info, PRs, etc
In order to support diff mode I also raised the following issue and pull request:
These are related to to underlying
awx.awx
(=ansible.controller
) modules, used in theinfra.controller_configuration
roles