From cc6127d6694022a95900a7f521cf8107761f854f Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 7 May 2019 16:42:49 +0200 Subject: [PATCH] facts: fix external cluster bug running an external ceph cluster deployment with (obviously) no monitors defined in inventory breaks with an undefined error because `_monitor_addresses` never get defined. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1707460 Signed-off-by: Guillaume Abrioux (cherry picked from commit 936c6fca7851287e03e687c2386bd1f3cb785505) --- roles/ceph-facts/tasks/facts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index 8e63e924a..6753ce1be 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -268,6 +268,7 @@ - name: import_tasks set_monitor_address.yml import_tasks: set_monitor_address.yml + when: groups.get(mon_group_name, []) | length > 0 - name: import_tasks set_radosgw_address.yml import_tasks: set_radosgw_address.yml -- 2.39.5