[openstack-dev] [heat][yaql] Deep merge map of lists?
Zane Bitter
zbitter at redhat.com
Tue Aug 30 16:16:07 UTC 2016
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.
- ZB
More information about the OpenStack-dev
mailing list