You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by ra...@apache.org on 2017/04/06 08:29:32 UTC

[06/32] incubator-ariatosca git commit: Fix issue where a service name was passed instead of a service id

Fix issue where a service name was passed instead of a service id


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

Branch: refs/heads/ARIA-48-aria-cli
Commit: 885e0962a2e138f6f78f169434aa1120e36b3309
Parents: 854cfbb
Author: Avia Efrat <av...@gigaspaces.com>
Authored: Mon Apr 3 17:09:25 2017 +0300
Committer: Ran Ziv <ra...@gigaspaces.com>
Committed: Thu Apr 6 11:29:17 2017 +0300

----------------------------------------------------------------------
 aria/cli/commands/services.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/885e0962/aria/cli/commands/services.py
----------------------------------------------------------------------
diff --git a/aria/cli/commands/services.py b/aria/cli/commands/services.py
index e73c43b..9f9d104 100644
--- a/aria/cli/commands/services.py
+++ b/aria/cli/commands/services.py
@@ -97,7 +97,8 @@ def create(service_template_name,
 
     try:
         core = Core(model_storage, resource_storage, plugin_manager)
-        service = core.create_service(service_template_name, inputs, service_name)
+        service_template = model_storage.service_template.get_by_name(service_template_name)
+        service = core.create_service(service_template.id, inputs, service_name)
     except storage_exceptions.StorageError as e:
         handle_storage_exception(e, 'service', service_name)
     except AriaException as e: