]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-cluster: fix failure when raw_multi_journal is not defined
authorAndrew Schoen <aschoen@redhat.com>
Thu, 26 Jan 2017 18:07:42 +0000 (12:07 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 27 Jan 2017 11:23:17 +0000 (05:23 -0600)
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>
infrastructure-playbooks/purge-cluster.yml

index 133d25fef258cd967d6ca0a488a6a05c56ae8d7d..70a3893dd3884131ee0c867b2a955b07f8d923c6 100644 (file)
     with_items: "{{ ceph_journal_partition_to_erase_path.stdout_lines }}"
     when:
       - ceph_journal_partlabels.rc == 0
+      - raw_multi_journal is defined
       - raw_multi_journal