]> git.apps.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:47:54 +0000 (08:47 +0200)
commit848dd03fa66c0febaf1ed081d4986d5de8472a09
treeac2d718e873c5a92310bf4b8ae4b498185eda9d5
parent7d848fa19e80389e3c53a94303acfb117d558400
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>
infrastructure-playbooks/backup-and-restore-ceph-files.yml