ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tliron <>
Subject [GitHub] incubator-ariatosca pull request #143: ARIA-254 Create multiple nodes per te...
Date Wed, 05 Jul 2017 20:58:20 GMT
Github user tliron commented on a diff in the pull request:
    --- Diff: extensions/aria_extension_tosca/simple_v1_0/modeling/ ---
    @@ -162,6 +164,30 @@ def convert_capability_from_definition_to_assignment(context, presentation,
         return CapabilityAssignment(name=presentation._name, raw=raw, container=container)
    +def merge_capability_definition(context, presentation, capability_definition,
    +                                from_capability_definition):
    +    raw_properties = OrderedDict()
    +    # Merge properties from type
    +    from_property_defintions =
    +    merge_raw_parameter_definitions(context, presentation, raw_properties, from_property_defintions,
    +                                    'properties')
    +    # Merge our properties
    +    merge_raw_parameter_definitions(context, presentation, raw_properties,
    +                          , 'properties')
    --- End diff --
    Not exactly. This is a utility method called by `get_inherited_capability_definitions`.
Its goal it to merge the current node type's capability definitions over the inherited parent
node type's capability definitions. "from" here is the parent's.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message