CID-472: temp fix to launch on qa

This commit is contained in:
Anton Chuchkalov 2016-04-05 20:19:43 +03:00
parent 497489dd77
commit 2c01f06890

View File

@ -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")