Skip to content
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 check mode always changed #1175

Conversation

jeroenvermeulen
Copy link
Contributor

SUMMARY

Prevent ansible.builtin.get_url from causing check_mode (--check) from being always 'changed'.
The problem is described in the get_url module documentation, see the check_mode attibute.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • zabbix_agent
  • zabbix_javagateway
  • zabbix_proxy
  • zabbix_server
  • zabbix_web
ADDITIONAL INFORMATION

We run our playbooks with --check every night.
The goal is to see where there is anything not compiant.
We noticed zabbix_agent, zabbix_web and zabbix_server were always 'changed'.
This is a fix / workaround.

@pyrodie18
Copy link
Collaborator

@BGmot what are your thoughts on making this change?

@BGmot
Copy link
Collaborator

BGmot commented Jan 30, 2024

I am ok with this change, it does not really affect our functionality (or testing). Just please let's make sure all the checks pass before we merge.

@jeroenvermeulen
Copy link
Contributor Author

@BGmot Thank you.
As far as I can see the failing tests were not caused by my code but by a temporary problem in the build system.
For example:

ERROR! Error when getting collection version metadata for community.postgresql:1.7.6 from default (https://galaxy.ansible.com/api/) (HTTP Code: 502, Message: Bad Gateway Code: Unknown)

@BGmot
Copy link
Collaborator

BGmot commented Jan 30, 2024

Some of them yes, not your code, I am re-running them. But take a look at this one https://github.com/ansible-collections/community.zabbix/actions/runs/7694015337

@jeroenvermeulen
Copy link
Contributor Author

The run you are pointing at seems to be from PR #1176
It is checking out rev eef22d5 which is part of that PR.

@BGmot
Copy link
Collaborator

BGmot commented Jan 31, 2024

Apologies. I approved. @pyrodie18 please merge if you don't have objections.

@pyrodie18 pyrodie18 merged commit 21ea598 into ansible-collections:main Feb 1, 2024
279 of 280 checks passed
pyrodie18 pushed a commit to pyrodie18/community.zabbix that referenced this pull request Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants