]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
backup-and-restore: fix check on 'mode' variable
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 29 Jun 2022 06:40:13 +0000 (08:40 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 29 Jun 2022 06:52:27 +0000 (08:52 +0200)
commit9965bf6cd6f2692cecdc3cee14132a2f4667ebe5
treee15b58b6db7718fe8bf891214304bebd6579c8c4
parent4156fd569f6ae591d0321ac4aaa65c2ee110f939
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 <gabrioux@redhat.com>
(cherry picked from commit 848dd03fa66c0febaf1ed081d4986d5de8472a09)
infrastructure-playbooks/backup-and-restore-ceph-files.yml