From ab5c9f2a674344517fdc028d64d571770aec4172 Mon Sep 17 00:00:00 2001 From: Eduard Egorov Date: Thu, 3 Nov 2016 06:34:01 +0000 Subject: [PATCH] Adjust 'devices' list check for being not defined in purge-cluster playbook (see PR #1024) Signed-off-by: Eduard Egorov --- infrastructure-playbooks/purge-cluster.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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