Tal Liron created ARIA-411:
------------------------------

             Summary: Parser exception when inheriting interface definitions
                 Key: ARIA-411
                 URL: https://issues.apache.org/jira/browse/ARIA-411
             Project: AriaTosca
          Issue Type: Story
            Reporter: Tal Liron


Parsing this will cause an exception:

{code}
tosca_definitions_version: tosca_simple_yaml_1_0

node_types:

  Node1:
    derived_from: tosca.nodes.Root
    interfaces:
      Standard:
        type: tosca.interfaces.node.lifecycle.Standard
        create:
          implementation:
            primary: b

  Node2:
    derived_from: Node1
    interfaces:
      Standard:
        type: tosca.interfaces.node.lifecycle.Standard
        create:
          implementation: b
{code}

Exception:
{code}
  File 
"/Depot/Projects/Cloudify/ariatosca/extensions/aria_extension_tosca/simple_v1_0/modeling/interfaces.py",
 line 376, in merge_raw_operation_definition
    deepcopy_with_locators(our_operation._raw['implementation']))
  File "/Depot/Projects/Cloudify/ariatosca/aria/utils/collections.py", line 
250, in merge
    for key, value_b in dict_b.iteritems():
{code}
The workaround for now is to add a {{primary}} key under {{implementation}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to