ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxm...@apache.org
Subject incubator-ariatosca git commit: Implementation-less-relationship-tasks-are-being-created
Date Tue, 18 Apr 2017 08:16:51 GMT
Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-48-aria-cli 8ced0f49e -> 9f9dc3ec9


Implementation-less-relationship-tasks-are-being-created


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/9f9dc3ec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/9f9dc3ec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/9f9dc3ec

Branch: refs/heads/ARIA-48-aria-cli
Commit: 9f9dc3ec9f2980e296a293bf7793263eca01c308
Parents: 8ced0f4
Author: max-orlov <maxim@gigaspaces.com>
Authored: Tue Apr 18 10:56:34 2017 +0300
Committer: max-orlov <maxim@gigaspaces.com>
Committed: Tue Apr 18 11:16:34 2017 +0300

----------------------------------------------------------------------
 aria/orchestrator/workflows/builtin/utils.py | 28 +++++++++++------------
 1 file changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/9f9dc3ec/aria/orchestrator/workflows/builtin/utils.py
----------------------------------------------------------------------
diff --git a/aria/orchestrator/workflows/builtin/utils.py b/aria/orchestrator/workflows/builtin/utils.py
index 722c618..2254d13 100644
--- a/aria/orchestrator/workflows/builtin/utils.py
+++ b/aria/orchestrator/workflows/builtin/utils.py
@@ -73,13 +73,13 @@ def relationship_tasks(relationship, interface_name, source_operation_name=None,
         try:
             if _is_empty_task(relationship, interface_name, source_operation_name):
                 operations.append(StubTask())
-
-            operations.append(
-                OperationTask.for_relationship(relationship=relationship,
-                                               interface_name=interface_name,
-                                               operation_name=source_operation_name,
-                                               **kwargs)
-            )
+            else:
+                operations.append(
+                    OperationTask.for_relationship(relationship=relationship,
+                                                   interface_name=interface_name,
+                                                   operation_name=source_operation_name,
+                                                   **kwargs)
+                )
         except exceptions.OperationNotFoundException:
             # We will skip relationships which do not have the operation
             pass
@@ -87,13 +87,13 @@ def relationship_tasks(relationship, interface_name, source_operation_name=None,
         try:
             if _is_empty_task(relationship, interface_name, target_operation_name):
                 operations.append(StubTask())
-
-            operations.append(
-                OperationTask.for_relationship(relationship=relationship,
-                                               interface_name=interface_name,
-                                               operation_name=target_operation_name,
-                                               **kwargs)
-            )
+            else:
+                operations.append(
+                    OperationTask.for_relationship(relationship=relationship,
+                                                   interface_name=interface_name,
+                                                   operation_name=target_operation_name,
+                                                   **kwargs)
+                )
         except exceptions.OperationNotFoundException:
             # We will skip relationships which do not have the operation
             pass


Mime
View raw message