From: Eduard Egorov Date: Thu, 3 Nov 2016 06:34:01 +0000 (+0000) Subject: Adjust 'devices' list check for being not defined in purge-cluster playbook (see... X-Git-Tag: v2.0~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1066%2Fhead;p=ceph-ansible.git Adjust 'devices' list check for being not defined in purge-cluster playbook (see PR #1024) Signed-off-by: Eduard Egorov --- diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index bbcab8e94..fd055a2a5 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -298,7 +298,7 @@ fail: msg: "OSD automatic discovery was detected, purge cluster does not support this scenario. If you want to purge the cluster, manually provide the list of devices in group_vars/{{ osd_group_name }} using the devices variable." when: - devices is not defined and + devices|length == 0 and osd_auto_discovery - name: get osd numbers