From 83193ffc1f77c64600763c5c97f4d36eda99bc75 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 4 Nov 2023 13:23:02 +0100 Subject: [PATCH] [PR #7476/57e36d7d backport][stable-8] timezone tests: do not restore original timezone if it wasn't known (value 'n/a') (#7479) 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 57e36d7dc2504d08261662bfb202aff604dcebde) Co-authored-by: Felix Fontein --- tests/integration/targets/timezone/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/targets/timezone/tasks/main.yml b/tests/integration/targets/timezone/tasks/main.yml index 3644eeafad..54a028868f 100644 --- a/tests/integration/targets/timezone/tasks/main.yml +++ b/tests/integration/targets/timezone/tasks/main.yml @@ -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'