Skip to content

Commit

Permalink
backup-and-restore: fix check on 'mode' variable
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 848dd03)
  • Loading branch information
guits committed Jun 29, 2022
1 parent 941102d commit 1db668d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure-playbooks/backup-and-restore-ceph-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"you must pass the mode: -e mode=<backup|restore>"
when:
- mode is not defined
- mode not in ['backup', 'restore']
or mode not in ['backup', 'restore']

- name: gather facts on source node
setup:
Expand Down

0 comments on commit 1db668d

Please sign in to comment.