purge-cluster: fix failure when raw_multi_journal is not defined

Because the purge-cluster.yml playbook does not have access to the roles
default vars then we can be sure that raw_multi_journal is defined. For
example, if this was purging a dmcrypt journal then raw_multi_journal
might not be defined at all in group_vars/all.yml or
group_vars/osds.yml.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit d3cb8dba4e)
pull/1255/head
Andrew Schoen 2017-01-26 12:07:42 -06:00
parent 03d229dcff
commit bbf426c5d8
1 changed files with 1 additions and 0 deletions

View File

@ -439,6 +439,7 @@
with_items: "{{ ceph_journal_partition_to_erase_path.stdout_lines }}"
when:
- ceph_journal_partlabels.rc == 0
- raw_multi_journal is defined
- raw_multi_journal