Skip to content

Commit

Permalink
fix: skip setting release if rhc_release is none
Browse files Browse the repository at this point in the history
Do not set release if rhc_release is none.
See ansible-collections/community.general#6401
for details.
  • Loading branch information
richm committed Jun 2, 2023
1 parent d452f1f commit 3f31f43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/subscription-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
and not 'keys' in rhc_auth.activation_keys | d({})) else omit }}"
release: "{{ rhc_release
if (rhc_state | d('present') != 'absent'
and rhc_release != __rhc_state_absent)
and rhc_release != __rhc_state_absent
and not rhc_release is none)
else omit }}"
server_proxy_hostname: "{% if rhc_proxy == __rhc_state_absent -%}
{{ __rhc_empty_string }}
Expand Down Expand Up @@ -100,6 +101,7 @@
- rhc_state | d("present") == "present"
- __rhc_subman_identity.rc == 0
- rhc_release != __rhc_state_absent
- not rhc_release is none

- name: Unset the release
community.general.rhsm_release:
Expand Down

0 comments on commit 3f31f43

Please sign in to comment.