Skip to content

Commit cc18446

Browse files
author
MAHDTech
authored
Add missing subdomain (#87)
1 parent 62e6da3 commit cc18446

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inventory-generation/notifications/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@
5050

5151
vars:
5252
ocp_subdomain: "{{ hosting_environments[0].ocp_sub_domain | lower }}"
53+
subdomain_base_suffix: "{{ engagement_region | default('dev') + cloud_provider_index | default('-1')' + ocp_base_url }}"
5354
when:
5455
- notifications_dir.stat.exists is false
5556
- start_date is defined
5657
- engagement_type | default('') == 'Residency' or engagement_type | default('') == 'DO500'
5758
- (hosting_environments is defined) and (hosting_environments | length > 0)
5859
- (archive_date | default('2006-01-02T15:04:05Z') | to_datetime('%Y-%m-%dT%H:%M:%SZ')).strftime('%s') > now(utc=true).strftime('%s')
5960
- hosting_environments[0].ocp_sub_domain is defined
61+
- ocp_base_url is defined
6062

6163
- name: "Process list of users from template"
6264
template:

0 commit comments

Comments
 (0)