[PR #7476/57e36d7d backport][stable-6] timezone tests: do not restore original timezone if it wasn't known (value 'n/a') (#7477)

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').

(cherry picked from commit 57e36d7dc2)

Co-authored-by: Felix Fontein <felix@fontein.de>
pull/7482/head
patchback[bot] 2023-11-04 13:22:54 +01:00 committed by GitHub
parent 938ed56d70
commit 56662f82fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -93,4 +93,4 @@
- name: Restore original system timezone - {{ original_timezone.diff.before.name }} - name: Restore original system timezone - {{ original_timezone.diff.before.name }}
timezone: timezone:
name: "{{ original_timezone.diff.before.name }}" name: "{{ original_timezone.diff.before.name }}"
when: original_timezone is changed when: original_timezone is changed and original_timezone.diff.before.name != 'n/a'