From 2c01f068900dcd73d90fbea0961dfd72ef5b857c Mon Sep 17 00:00:00 2001 From: Anton Chuchkalov Date: Tue, 5 Apr 2016 20:19:43 +0300 Subject: [PATCH] CID-472: temp fix to launch on qa --- devops-service/app/api2/parsers/stack.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devops-service/app/api2/parsers/stack.rb b/devops-service/app/api2/parsers/stack.rb index 322ef85..ff6c510 100644 --- a/devops-service/app/api2/parsers/stack.rb +++ b/devops-service/app/api2/parsers/stack.rb @@ -7,6 +7,14 @@ module Devops def create @body ||= create_object_from_json_body + + # temp fix to work on qa: + unless @body['stack_attributes'] + @body = { + 'stack_attributes' => @body.dup + } + end + stack_attributes = @body.fetch('stack_attributes') project_name = check_string(stack_attributes["project"], "Parameter 'project' must be a not empty string") env_name = check_string(stack_attributes["deploy_env"], "Parameter 'deploy_env' must be a not empty string")