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
This commit is contained in:
parent
c2c48aae03
commit
571a764cba
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue