You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ariatosca.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/05/18 18:19:04 UTC
[jira] [Commented] (ARIA-149) Support instrinsic functions in
"dependencies" operation configuration
[ https://issues.apache.org/jira/browse/ARIA-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16016201#comment-16016201 ]
ASF subversion and git services commented on ARIA-149:
------------------------------------------------------
Commit 88587f8280df12fb228cbed524ce95e652ba2441 in incubator-ariatosca's branch refs/heads/ARIA-149-functions-in-operation-configuration from [~emblemparade]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-ariatosca.git;h=88587f8 ]
ARIA-149 Enhance operation configuration
> Support instrinsic functions in "dependencies" operation configuration
> ----------------------------------------------------------------------
>
> Key: ARIA-149
> URL: https://issues.apache.org/jira/browse/ARIA-149
> Project: AriaTosca
> Issue Type: Story
> Reporter: Tal Liron
> Assignee: Tal Liron
>
> There are a few issues here. First, the following YAML is totally broken;
> {code}
> dependencies:
> - ssh.address > { get_attribute: virtual_ip.floating_ip }
> {code}
> The problem is that in YAML, due to the location of the ":", this gets parsed as a dict where the key is {code}ssh.address > { get_attribute{code} and the value is {code}virtual_ip.floating_ip }{code} which is not what we want at all.
> The solution is to encase the whole value in quotes to enforce parsing as a string:
> {code}
> dependencies:
> - "ssh.address > { get_attribute: virtual_ip.floating_ip }"
> {code}
> Note that the one attractive solution is to to change this ">" format to a real dict. So:
> {code}
> dependencies:
> - { ssh.address: { get_attribute: virtual_ip.floating_ip } }
> {code}
> But this will break other TOSCA parsers that expect a string here, so no go. :(
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)