From 57e36d7dc2504d08261662bfb202aff604dcebde Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 4 Nov 2023 13:07:49 +0100 Subject: [PATCH] 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'). --- 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'