This commit is contained in:
Anton Martynov 2015-09-28 22:04:22 +03:00
parent 49ea2de13c
commit 2a21236b92

View File

@ -47,6 +47,8 @@ module Devops
def add_or_update_deploy_env def add_or_update_deploy_env
body = create_object_from_json_body body = create_object_from_json_body
rl = check_array(body["run_list"], "Parameter 'run_list' should be an array of string", String, false, true)
Validators::Helpers::RunList.new(rl).validate!
Devops::Model::DeployEnvFactory.create(body) Devops::Model::DeployEnvFactory.create(body)
end end