Hi all,
I'm trying to figure out the cleanest way to do a replacement of values in
a mapping (json parameter) in a heat template, e.g:
ServiceNetMap:
type: json
default:
IronicApiNetwork: internal_api
CephPublicNetwork: storage
NetIpMap:
type: json
default:
Try this:
yaql:
expression:let(root => $) ->
dict($root.data.service.items().select([$[0], $root.data.ip[$[1]]]))
data:
service: { get_param: ServiceNetMap }
ip: { get_param: NetIpMap}
2016-07-15 12:25 GMT+03:00 Steven Hardy :
> Hi all,
>
> I'm trying to figure out the cleanest way
On Fri, Jul 15, 2016 at 03:35:51PM +0300, Peter Razumovsky wrote:
>Try this:
>yaql:
> expression:let(root => $) ->
>dict($root.data.service.items().select([$[0], $root.data.ip[$[1]]]))
> data:
> service: { get_param: ServiceNetMap }
> ip: { get_param: NetIpMap}
On Fri, Jul 15, 2016 at 10:25:39AM +0100, Steven Hardy wrote:
> Hi all,
>
> I'm trying to figure out the cleanest way to do a replacement of values in
> a mapping (json parameter) in a heat template, e.g:
>
> ServiceNetMap:
> type: json
> default:
> IronicApiNetwork: internal_api
On 19/07/16 11:04, Steven Hardy wrote:
On Fri, Jul 15, 2016 at 10:25:39AM +0100, Steven Hardy wrote:
Hi all,
I'm trying to figure out the cleanest way to do a replacement of values in
a mapping (json parameter) in a heat template, e.g:
ServiceNetMap:
type: json
default:
IronicA