Skip to content

Commit 62e6da3

Browse files
author
MAHDTech
authored
Add missing ocp_subdomain (#86)
* Add missing ocp_subdomain * Check that var is defined
1 parent cad6ad2 commit 62e6da3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inventory-generation/notifications/main.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@
4848
src: "hosts"
4949
dest: "{{ directory }}/iac/inventories/notifications/inventory/hosts"
5050

51+
vars:
52+
ocp_subdomain: "{{ hosting_environments[0].ocp_sub_domain | lower }}"
5153
when:
5254
- notifications_dir.stat.exists is false
5355
- start_date is defined
5456
- engagement_type | default('') == 'Residency' or engagement_type | default('') == 'DO500'
5557
- (hosting_environments is defined) and (hosting_environments | length > 0)
5658
- (archive_date | default('2006-01-02T15:04:05Z') | to_datetime('%Y-%m-%dT%H:%M:%SZ')).strftime('%s') > now(utc=true).strftime('%s')
59+
- hosting_environments[0].ocp_sub_domain is defined
5760

5861
- name: "Process list of users from template"
5962
template:

0 commit comments

Comments
 (0)