Skip to content

Conversation

@sur5r
Copy link
Contributor

@sur5r sur5r commented Jul 30, 2025

@sur5r sur5r requested a review from a team as a code owner July 30, 2025 11:22
@github-actions github-actions bot added the unattended_upgrades Related to role hifis.unattended_upgrades label Jul 30, 2025
@Normo Normo self-requested a review July 30, 2025 11:59
Copy link
Member

@Normo Normo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sur5r !
I think we can even remove this condition entirely. See the suggested changes, please.

@sur5r
Copy link
Contributor Author

sur5r commented Jul 31, 2025

I'm not using check mode that much, so I'm not entirely sure about the implications. I will do a quick test with your changes.

@sur5r
Copy link
Contributor Author

sur5r commented Jul 31, 2025

A quick try sugggests check mode works with that conditional removed. I'd say the registers in lines 29 and 38 can be removed as well then as they are unused now.

Ansible 2.19 no longer allows impliction boolean conversions. Given
those conditions where not necessary in the first place, remove the
registers created for them as well.

See https://ansible.readthedocs.io/projects/ansible-core/devel/porting_guides/porting_guide_core_2.19.html#broken-conditionals
@sur5r sur5r requested a review from Normo July 31, 2025 07:30
@Normo Normo self-assigned this Jul 31, 2025
Copy link
Member

@Normo Normo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect 👌 Thanks @sur5r 🙏

@Normo Normo merged commit 0facbc7 into hifis-net:main Jul 31, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

unattended_upgrades Related to role hifis.unattended_upgrades

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants