Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-165-Make-node-name-suffix-UUIDs-become-more-readable 
aa57ad0b4 -> a10e6dc68 (forced update)


wip


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

Branch: refs/heads/ARIA-165-Make-node-name-suffix-UUIDs-become-more-readable
Commit: a10e6dc68bd13749abfb48b7dc032621a5181f5f
Parents: 0ec2370
Author: max-orlov <ma...@gigaspaces.com>
Authored: Mon May 8 15:25:37 2017 +0300
Committer: max-orlov <ma...@gigaspaces.com>
Committed: Mon May 8 17:09:02 2017 +0300

----------------------------------------------------------------------
 aria/modeling/service_template.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/a10e6dc6/aria/modeling/service_template.py
----------------------------------------------------------------------
diff --git a/aria/modeling/service_template.py 
b/aria/modeling/service_template.py
index 7fab4fc..da83143 100644
--- a/aria/modeling/service_template.py
+++ b/aria/modeling/service_template.py
@@ -549,9 +549,8 @@ class NodeTemplateBase(TemplateModelMixin):
             ('requirement_templates', 
formatting.as_raw_list(self.requirement_templates))))
 
     def instantiate(self, container):
-        context = ConsumptionContext.get_thread_local()
         from . import models
-        name = context.modeling.generate_node_id(self.name)
+        name = '{name}.{index}'.format(self.name, len(self.nodes))
         node = models.Node(name=name,
                            type=self.type,
                            
description=deepcopy_with_locators(self.description),

Reply via email to