From 571a764cba003f9dcae525ee7a7f36a26c3ddb92 Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Thu, 13 Dec 2018 18:56:20 +0530 Subject: [PATCH] Allow for service_bootstrap_ips empty list in IpListMap It seems in some cases we get an empty list for services in service_bootstrap_ips and the yaql expression fails. Though there can be better solution to not look for EnabledServices for roles that has zero count, this would probably fix the immediate scenario008 failures. Change-Id: Ife1fc3f7736ed5743c80fa3748a75cb0bb52b817 Closes-Bug: #1808240 --- overcloud.j2.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overcloud.j2.yaml b/overcloud.j2.yaml index 98c1cecb18..1982811297 100644 --- a/overcloud.j2.yaml +++ b/overcloud.j2.yaml @@ -734,7 +734,7 @@ resources: {% endfor %} service_bootstrap_node_ip: yaql: - expression: dict($.data.l.where($ != null).selectMany($.items()).groupBy($[0], $[1]).select([$[0], $[1].flatten().first()])) + expression: dict($.data.l.where($ != null).selectMany($.items()).groupBy($[0], $[1]).select([$[0], $[1].flatten().first(null)])) data: l: {% for role in roles %}