From e28615809c6bd232616ff8127dbea7f1c52cfaec Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 29 Jun 2022 08:40:13 +0200 Subject: [PATCH] backup-and-restore: fix check on 'mode' variable Typical failure: ``` fatal: [localhost]: FAILED! => msg: |- The conditional check 'mode not in ['backup', 'restore']' failed. The error was: error while evaluating conditional (mode not in ['backup', 'restore']): 'mode' is undefined ``` Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2051640 Signed-off-by: Guillaume Abrioux (cherry picked from commit 848dd03fa66c0febaf1ed081d4986d5de8472a09) --- infrastructure-playbooks/backup-and-restore-ceph-files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure-playbooks/backup-and-restore-ceph-files.yml b/infrastructure-playbooks/backup-and-restore-ceph-files.yml index 93f8143be..a01d0e88a 100644 --- a/infrastructure-playbooks/backup-and-restore-ceph-files.yml +++ b/infrastructure-playbooks/backup-and-restore-ceph-files.yml @@ -42,7 +42,7 @@ "you must pass the mode: -e mode=" when: - mode is not defined - - mode not in ['backup', 'restore'] + or mode not in ['backup', 'restore'] - name: gather facts on source node setup: