[openstack-dev] [Heat] Conditionals, was: New function: first_nonnull
alexisl at hp.com
Tue Nov 11 15:35:04 UTC 2014
Alexis Lee said on Mon, Nov 10, 2014 at 05:34:13PM +0000:
> How about we support YAQL expressions? https://github.com/ativelkov/yaql
> Plus some HOFs (higher-order functions) like cond, map, filter, foldleft
We could also use YAQL to provide the HOFs.
> Here's first_nonnull:
> - 0
> - yaql: "$.0 != null"
> - <item1>
> - <itemN>
yaql: "$[$ != null]"
This approach requires less change to Heat, at the price of learning
Nova Engineer, HP Cloud. AKA lealexis, lxsli.
More information about the OpenStack-dev