[openstack-dev] [Heat] Conditionals, was: New function: first_nonnull
randall.burt at RACKSPACE.COM
Tue Nov 11 16:04:05 UTC 2014
I like this approach and seems to have greater utility beyond the original proposal. I'm not fussed on YAQL or straight up JSONPath, but something along those lines seems to make sense.
On Nov 11, 2014, at 9:35 AM, Alexis Lee <alexisl at hp.com>
> 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]"
> - <item1>
> - <itemN>
> This approach requires less change to Heat, at the price of learning
> more YAQL.
> Nova Engineer, HP Cloud. AKA lealexis, lxsli.
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
More information about the OpenStack-dev