ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From emblempar...@apache.org
Subject incubator-ariatosca git commit: Requested changes
Date Tue, 05 Sep 2017 18:21:41 GMT
Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-321-clearwater 7679bc1f9 -> 3d6ffe1f0


Requested changes


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

Branch: refs/heads/ARIA-321-clearwater
Commit: 3d6ffe1f04ab887ddf56320fe7e65fb82ed2b8a1
Parents: 7679bc1
Author: Tal Liron <tal.liron@gmail.com>
Authored: Tue Sep 5 13:21:26 2017 -0500
Committer: Tal Liron <tal.liron@gmail.com>
Committed: Tue Sep 5 13:21:26 2017 -0500

----------------------------------------------------------------------
 aria/modeling/service_instance.py                 | 18 ------------------
 .../clearwater/clearwater-live-test-existing.yaml |  2 +-
 .../clearwater/clearwater-single-existing.yaml    |  2 +-
 3 files changed, 2 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/3d6ffe1f/aria/modeling/service_instance.py
----------------------------------------------------------------------
diff --git a/aria/modeling/service_instance.py b/aria/modeling/service_instance.py
index 589bd6b..df16bb8 100644
--- a/aria/modeling/service_instance.py
+++ b/aria/modeling/service_instance.py
@@ -284,24 +284,6 @@ class ServiceBase(InstanceModelMixin):
         for operation in self.workflows.itervalues():
             operation.configure()
 
-    def is_node_a_target(self, target_node):
-        for node in self.nodes.itervalues():
-            if self._is_node_a_target(node, target_node):
-                return True
-        return False
-
-    def _is_node_a_target(self, source_node, target_node):
-        if source_node.outbound_relationships:
-            for relationship_model in source_node.outbound_relationships:
-                if relationship_model.target_node.name == target_node.name:
-                    return True
-                else:
-                    node = relationship_model.target_node
-                    if node is not None:
-                        if self._is_node_a_target(node, target_node):
-                            return True
-        return False
-
     @property
     def as_raw(self):
         return collections.OrderedDict((

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/3d6ffe1f/examples/clearwater/clearwater-live-test-existing.yaml
----------------------------------------------------------------------
diff --git a/examples/clearwater/clearwater-live-test-existing.yaml b/examples/clearwater/clearwater-live-test-existing.yaml
index 7d21df0..0e6a11c 100644
--- a/examples/clearwater/clearwater-live-test-existing.yaml
+++ b/examples/clearwater/clearwater-live-test-existing.yaml
@@ -23,7 +23,7 @@ metadata:
   template_name: clearwater-live-test-existing
   template_author: ARIA
   template_version: '1.0'
-  aria_version: '0.1.2'
+  aria_version: '0.2.0'
 
 imports:
   - types/clearwater.yaml

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/3d6ffe1f/examples/clearwater/clearwater-single-existing.yaml
----------------------------------------------------------------------
diff --git a/examples/clearwater/clearwater-single-existing.yaml b/examples/clearwater/clearwater-single-existing.yaml
index e2f41a0..72b882a 100644
--- a/examples/clearwater/clearwater-single-existing.yaml
+++ b/examples/clearwater/clearwater-single-existing.yaml
@@ -23,7 +23,7 @@ metadata:
   template_name: clearwater-single-existing
   template_author: ARIA
   template_version: '1.0'
-  aria_version: '0.1.2'
+  aria_version: '0.2.0'
 
 imports:
   - types/clearwater.yaml


Mime
View raw message