Skip to content

Commit

Permalink
Force INT
Browse files Browse the repository at this point in the history
  • Loading branch information
UNiXMIT committed Oct 14, 2024
1 parent ccf4e84 commit e9fde08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions win/initial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
availabilityZone: '{{ azEMEA }}'
awsAMI: '{{ amiEMEA }}'
securityGroups: '{{ securityGroupsEMEA }}'
when: userRegion | default("1") == "1"
when: userRegion | default("1") | int == "1"

- name: AMS Region
set_fact:
awsRegion: '{{ regionAMS }}'
availabilityZone: '{{ azAMS }}'
awsAMI: '{{ amiAMS }}'
securityGroups: '{{ securityGroupsAMS }}'
when: userRegion | default("1") == "2"
when: userRegion | default("1") | int == "2"

- name: APJ Region
set_fact:
awsRegion: '{{ regionAPJ }}'
availabilityZone: '{{ azAPJ }}'
awsAMI: '{{ amiAPJ }}'
securityGroups: '{{ securityGroupsAPJ }}'
when: userRegion | default("1") == "3"
when: userRegion | default("1") | int == "3"
4 changes: 2 additions & 2 deletions win/sso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
responses:
SSO Email: '{{ ssoEmail }}'
SSO Password: '{{ ssoPassword }}'
when: ssoMethod | default("1") == "1"
when: ssoMethod | default("1") | int == "1"

- name: TOTP Authentication
ansible.builtin.expect:
Expand All @@ -13,4 +13,4 @@
SSO Email: '{{ ssoEmail }}'
SSO Password: '{{ ssoPassword }}'
TOTP Authenticator Code: '{{ ssoToken }}'
when: ssoMethod | default("1") == "2"
when: ssoMethod | default("1") | int == "2"

0 comments on commit e9fde08

Please sign in to comment.