tliron / puccini

Cloud topology management and deployment tools based on TOSCA
https://puccini.cloud
Apache License 2.0
88 stars 20 forks source link

value field unsupported in parameter definitions #104

Closed philippemerle closed 2 years ago

philippemerle commented 2 years ago

For the following service template

tosca_definitions_version: tosca_simple_yaml_1_3
node_types:
  MyNodeType:
    derived_from: tosca.nodes.Root
    interfaces:
      Standard:
        operations:
          start:
            inputs:
              tosca_id:
                type: string
                value: { get_attribute: [SELF, tosca_id] }

puccini raises the following error

$ puccini-tosca parse puccini-inputs-value.yaml 
PROBLEMS (1)
  file:/.../puccini-inputs-value.yaml
    @12,17 node_types["MyNodeType"].interfaces["Standard"].operations["start"].inputs["tosca_id"].value: unsupported field

According to Section 3.6.17.1 of TOSCA 1.3 and Section 4.3.6.4.1 of TOSCA 2.0 csd 03, inputs is a map of parameter definitions when used inside a node type definition.

tliron commented 2 years ago

Which version of Puccini are you using? This works for me in the current HEAD.

philippemerle commented 2 years ago

I am using the 0.20.0 release. I will move to 0.20.1 asap.

philippemerle commented 2 years ago

This works well with puccini 0.20.1 release.