radon-h2020/radon-gmt

Policies in service templates are serialized not as a list

Closed this issue · 2 comments

According to 3.9.2 in the TOSCA spec, policies in a service template must be serialized as a list of policy definitions. Like in this example:

policies:
    - my_anti_collocation_policy:
        type: my.policies.anticolocateion
        targets: [ my_co_location_group ]
        # For this example, specific policy definitions are considered
        # domain specific and are not included here

Currently, Winery serializes policies in a map.

@zhululai the latest GMT image will now serialize policies as a list.

@duelle we'll also update the examples in the particles in the hours/days.