Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-48-aria-cli 7b3b13b31 -> aa75638a2


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/e1000c3d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/e1000c3d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/e1000c3d

Branch: refs/heads/ARIA-48-aria-cli
Commit: e1000c3d6a829f0f61cd47fac35bf47af8a07ec2
Parents: 7b3b13b
Author: Avia Efrat <[email protected]>
Authored: Mon Apr 3 17:09:25 2017 +0300
Committer: Avia Efrat <[email protected]>
Committed: Mon Apr 3 17:09:25 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/e1000c3d/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:

Reply via email to