Github user mxmrlv commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/77#discussion_r108060335
--- Diff: aria/orchestrator/workflows/builtin/utils.py ---
@@ -31,24 +32,59 @@ def create_node_task(interface_name, operation_name,
node):
return None
-def create_relationship_tasks(interface_name, operation_name, runs_on,
node):
+def create_relationships_tasks(
+ node, interface_name, source_operation_name=None,
target_operation_name=None):
"""
- Returns a list of operation tasks for each outbound relationship of
the node if the operation
- exists there.
+ Creates a relationship task (source and target) for all of a
node_instance relationships.
+ :param basestring source_operation_name: the relationship operation
name.
+ :param source_operation_name:
+ :param target_operation_name:
+ :param NodeInstance node: the source_node
+ :return:
"""
+ relationships_groups = groupby(node.outbound_relationships,
+ key=lambda relationship:
relationship.target_node.id)
--- End diff --
groupby is meaningless
---
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.
---