mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
timezone tests: do not restore original timezone if it wasn't known (value 'n/a') (#7476)
Do not restore original timezone if it wasn't known (value 'n/a').
This commit is contained in:
@@ -93,4 +93,4 @@
|
||||
- name: Restore original system timezone - {{ original_timezone.diff.before.name }}
|
||||
timezone:
|
||||
name: "{{ original_timezone.diff.before.name }}"
|
||||
when: original_timezone is changed
|
||||
when: original_timezone is changed and original_timezone.diff.before.name != 'n/a'
|
||||
|
||||
Reference in New Issue
Block a user