Merge pull request #1916 from ceph/purge-cluster-fix

purge-cluster: default lvm_volumes if not defined
pull/1955/head
Andrew Schoen 2017-09-27 12:03:16 -05:00 committed by GitHub
commit 254c12b07e
1 changed files with 5 additions and 0 deletions

View File

@ -216,6 +216,11 @@
tasks:
- name: default lvm_volumes if not defined
set_fact:
lvm_volumes: []
when: lvm_volumes is not defined
- name: get osd numbers
shell: "if [ -d /var/lib/ceph/osd ] ; then ls /var/lib/ceph/osd | sed 's/.*-//' ; fi"
register: osd_ids