-
Notifications
You must be signed in to change notification settings - Fork 17
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: correctly set release using new behavior of rhsm_release #108
Conversation
[citest] |
It'd seem OK at a quick glance; i need to test this manually using |
Unfortunately this does not fix the situation completely, and unsetting a release (i.e. specifying
this was tested using The situation is the following:
Yes, a giant mess. |
Let's untangle it by temporarily dropping the support for Fedora: #109. |
3f31f43
to
0178b9f
Compare
OK, created #110 so we can rely on a newer Because of the new behaviour, we can simplify things a bit: instead of two |
0178b9f
to
4395434
Compare
[citest] |
The way the new version of rhsm_release works is this: - if the `release` parameter is present, set the release to the given value. - If there is no `release` parameter, unset the release. If the user does not set `rhc_release`, or if the user sets it to `omit` then it will be `null`, and calling the rhsm_release module will be skipped. See ansible-collections/community.general#6401 for details. Signed-off-by: Rich Megginson <[email protected]>
4395434
to
bd50e92
Compare
[citest] |
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.
Thanks! The release handling LGTM now, and tests_release
nicely passes (tested with a Stage account, using a combo of (ansible-core-2.11, ansible-core-2.15) x (rhel-8-8, rhel-9-2)).
I will wait the successful CI run to merge this.
The way the new version of rhsm_release works is - if the
release
parameter is present, set the release to the given value.
If there is no
release
parameter, unset the release.If the user does not set
rhc_release
, then it will benull
,and calling the rhsm_release module will be skipped.
See ansible-collections/community.general#6401
for details.
Signed-off-by: Rich Megginson [email protected]