Skip to content

Commit 4b4ced0

Browse files
authored
Only use engagement date for dates (#34)
1 parent ba8fef6 commit 4b4ced0

File tree

1 file changed

+3
-3
lines changed
  • inventory-generation/identity-management

1 file changed

+3
-3
lines changed

inventory-generation/identity-management/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
- name: "Assemble inventory"
6565
set_fact:
6666
claim_content:
67-
env_end_date: "{{ (archive_date | to_datetime('%Y-%m-%dT%H:%M:%S%z')).strftime('%d %b %Y') }}"
68-
end_date: "{{ (end_date | to_datetime('%Y-%m-%dT%H:%M:%S%z')).strftime('%d %b %Y') }}"
69-
start_date: "{{ (start_date | to_datetime('%Y-%m-%dT%H:%M:%S%z')).strftime('%d %b %Y') }}"
67+
env_end_date: "{{ (archive_date | regex_replace('^(.*)T.*$', '\\1') | to_datetime('%Y-%m-%d')).strftime('%d %b %Y') }}"
68+
end_date: "{{ (end_date | regex_replace('^(.*)T.*$', '\\1') | to_datetime('%Y-%m-%d')).strftime('%d %b %Y') }}"
69+
start_date: "{{ (start_date | regex_replace('^(.*)T.*$', '\\1') | to_datetime('%Y-%m-%d')).strftime('%d %b %Y') }}"
7070
customer_name: "{{ customer_name }}"
7171
project_name: "{{ project_name }}"
7272
ipa_validate_certs: "{{ ipa_validate_certs }}"

0 commit comments

Comments
 (0)