tliron / puccini

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

Attribute defaults are broken for list types #108

Closed tliron closed 2 years ago

tliron commented 2 years ago
tosca_definitions_version: tosca_2_0

node_types:

  Hello:
    attributes:
      hello:
        type: list
        entry_schema: string
        default: [ hi ]

topology_template:

  node_templates:

    hello:
      type: Hello

Will lead to this problem:

@10,9 node_types["Hello"].attributes["hello"].default: "*tosca_v2_0.ValueList" instead of "list"

There is no problem if attributes is changed to properties.