Skip to content

Commit b75d1b7

Browse files
committed
Force rhc_organization variable to be interger
In situations where we're unmarshaling data from json to form variables, it's possible that those values can be unmarshalled as floating point numbers. Which would be incompatible with the current org ID's. This change asserts that the type of number for rhc_organization should be an integer. Jira: https://issues.redhat.com/browse/OSPRH-15097 Signed-off-by: Brendan Shephard <bshephar@redhat.com>
1 parent 71b639e commit b75d1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/subscription-manager.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
password: "{{ rhc_auth.login.password | d(omit) }}"
3232
activationkey: "{{ rhc_auth.activation_keys['keys'] | join(',')
3333
if ('keys' in rhc_auth.activation_keys | d({})) else omit }}"
34-
org_id: "{{ rhc_organization
34+
org_id: "{{ rhc_organization | int
3535
if (not rhc_organization is none
3636
and rhc_organization != omit)
3737
else omit }}"

0 commit comments

Comments
 (0)