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

    https://github.com/apache/incubator-ariatosca/pull/72#discussion_r105656646
  
    --- Diff: aria/modeling/service_instance.py ---
    @@ -192,21 +193,21 @@ def get_group_ids(self, group_template_name):
             return collections.FrozenList((group.name
                                            for group in 
self.find_groups(group_template_name)))
     
    -    def is_node_a_target(self, context, target_node):
    +    def is_node_a_target(self, target_node):
             for node in self.nodes:
    -            if self._is_node_a_target(context, node, target_node):
    +            if self._is_node_a_target(node, target_node):
                     return True
             return False
     
    -    def _is_node_a_target(self, context, source_node, target_node):
    -        if source_node.relationships:
    -            for relationship in source_node.relationships:
    -                if relationship.target_node_id == target_node.name:
    +    def _is_node_a_target(self, source_node, target_node):
    +        if source_node.outbound_relationships:
    --- End diff --
    
    if 
source_node.outbound_relationships.filter_by(target_node_name=target_node.name):...


---
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