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/a26f245e Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/a26f245e Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/a26f245e Branch: refs/heads/ARIA-48-aria-cli Commit: a26f245e83ac9e00d6ea5d9dd1248cf461bd3888 Parents: 375228b Author: Avia Efrat <a...@gigaspaces.com> Authored: Mon Apr 3 17:09:25 2017 +0300 Committer: Ran Ziv <r...@gigaspaces.com> Committed: Tue Apr 4 13:20:46 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/a26f245e/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: