add ability to use blank password in devops-client conf

This commit is contained in:
Anton Chuchkalov 2015-11-13 18:49:32 +03:00
parent df38e86117
commit 1c9fca2017

View File

@ -33,7 +33,7 @@ module DevopsClient
if config[:host].nil?
abort(I18n.t("config.invalid.host"), :file => @@config_file)
end
[:api, :username, :password].each do |key|
[:api, :username].each do |key|
if config[key].nil? or config[key].empty?
abort(I18n.t("config.invalid.empty", :file => @@config_file, :key => key))
end