[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [tosca] Syntactical sugar for generating templates
YAML parsers are not terribly happy about having anything but strings to the left of the â:â, so you will have to quote the name-_expression_:
Â
ÂÂÂ "{ concat: [ site-, { get_variable: [ SITE, name ] } ] }":
Your example does raise a serious question about how the TOSCA functions distribute over list-type values. You are implying that if the value of SITE is [A, B, C], then your _expression_ would yield [Site-A, Site-B, Site-C], but it could just as well have yielded âSite-[A, B, C]â or âSite-ABCâ. And what if you have another variable LOC with values [X, Y] and your concat-_expression_ uses both SITE and LOC. In your interpretation that would yield 5 nodes containing all 6 combinations like âSite-A-Loc-Xâ, âSite-A-Loc-Yâ, âSite-B-Loc-Xâ, â
P.S. I never have any luck with the oasis-list distribution. Can you please forward to the others for me?
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]