]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Adjust 'devices' list check for being not defined in purge-cluster playbook (see... 1066/head
authorEduard Egorov <eduard.egorov@icl-services.com>
Thu, 3 Nov 2016 06:34:01 +0000 (06:34 +0000)
committerEduard Egorov <eduard.egorov@icl-services.com>
Thu, 3 Nov 2016 06:36:42 +0000 (06:36 +0000)
Signed-off-by: Eduard Egorov <eduard.egorov@icl-services.com>
infrastructure-playbooks/purge-cluster.yml

index bbcab8e94181b3619a3932d2f2df1775f4dfe017..fd055a2a55c854801e5e6d45c4e000c96968c534 100644 (file)
     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