[openstack-dev] [heat][yaql] Deep merge map of lists?

Jiří Stránský jistr at redhat.com
Tue Aug 30 16:26:11 UTC 2016


On 30.8.2016 18:16, Zane Bitter wrote:
> On 30/08/16 12:02, Steven Hardy wrote:
>>   debug_tripleo2:
>>     value:
>>       yaql:
>>         expression: $.data.l.reduce($1.mergeWith($2))
>>         data:
>>           l:
>>             - "gnocchi_metricd_node_names": ["overcloud-controller-0",
>>               "overcloud-controller-1", "overcloud-controller-2"]
>>               "tripleo_packages_node_names": ["overcloud-controller-0", "overcloud-controller-1", "overcloud-controller-2"]
>>             - "nova_compute_node_names": ["overcloud-compute-0"]
>>               "tripleo_packages_node_names": ["overcloud-compute-0"]
>>               "tripleo_packages_node_names2": ["overcloud-compute-0"]
>>             - "ceph_osd_node_names": ["overcloud-cephstorage-0"]
>>               "tripleo_packages_node_names": ["overcloud-cephstorage-0"]
>>               "tripleo_packages_node_names2": ["overcloud-cephstorage-0"]
>>
>> $ heat output-show foo5 debug_tripleo2
>> stack output show" instead
>> Output error: can only concatenate tuple (not "list") to tuple
>>
>> I've not dug too deeply yet, but assuming that's a yaql error vs a heat bug
>> it looks like it won't work.
>
> It works flawlessly in yaqluator, so that sounds like a Heat bug.

Ack, i reported it so that it doesn't fall through the cracks:

https://bugs.launchpad.net/heat/+bug/1618538


Jirka

>
> - ZB
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>




More information about the OpenStack-dev mailing list