From 7ead58ff913844cfc0f09d2d1fd6a8c54e6792a7 Mon Sep 17 00:00:00 2001 From: amartynov Date: Tue, 15 Sep 2015 14:12:39 +0300 Subject: [PATCH] fixed --- devops-service/app/api2/parsers/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devops-service/app/api2/parsers/project.rb b/devops-service/app/api2/parsers/project.rb index a99c449..1a799f4 100644 --- a/devops-service/app/api2/parsers/project.rb +++ b/devops-service/app/api2/parsers/project.rb @@ -55,7 +55,7 @@ module Devops check_string(body["name"], "Parameter 'name' must be a not empty string", true, false) check_string(body["description"], "Parameter 'description' must be a string", true, true) #check_array(body["deploy_envs"], "Parameter 'deploy_envs' must be a not empty array of objects", Hash) - check_array(body["run_list"], "Parameter 'run_list' must be an array of string", String, true, true) + rl = check_array(body["run_list"], "Parameter 'run_list' must be an array of string", String, true, true) Validators::Helpers::RunList.new(rl).validate! unless rl.nil? #raise InvalidRecord.new("'components' key not found") if c["components"].nil? #Devops::Model::Project.new(body)