Github user dankilman commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/20#discussion_r88033147
  
    --- Diff: aria/workflows/api/task.py ---
    @@ -90,40 +91,45 @@ def __init__(self,
                                    if ignore_failure is None else 
ignore_failure)
     
         @classmethod
    -    def node_instance(cls, actor, name, inputs=None, *args, **kwargs):
    +    def node_instance(cls, instance, name, inputs=None, *args, **kwargs):
             """
             Represents a node based operation
     
    -        :param actor: the node of which this operation belongs to.
    +        :param instance: the node of which this operation belongs to.
             :param name: the name of the operation.
             """
    -        assert isinstance(actor, storage.models.NodeInstance)
    -        operation_details = actor.node.operations[name]
    +        assert isinstance(instance, storage.models.NodeInstance)
    +        operation_details = instance.node.operations[name]
             operation_inputs = operation_details.get('inputs', {})
             operation_inputs.update(inputs or {})
             return cls(name=name,
    -                   actor=actor,
    +                   actor=instance,
                        operation_mapping=operation_details.get('operation', 
''),
                        inputs=operation_inputs,
                        *args,
                        **kwargs)
     
         @classmethod
    -    def relationship_instance(cls, name, actor, operation_end, 
inputs=None, *args, **kwargs):
    +    def relationship_instance(cls, instance, actor, operation_end, 
inputs=None, *args, **kwargs):
    --- End diff --
    
    fix


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to