add ability to use blank password in devops-client conf
This commit is contained in:
parent
df38e86117
commit
1c9fca2017
@ -33,7 +33,7 @@ module DevopsClient
|
|||||||
if config[:host].nil?
|
if config[:host].nil?
|
||||||
abort(I18n.t("config.invalid.host"), :file => @@config_file)
|
abort(I18n.t("config.invalid.host"), :file => @@config_file)
|
||||||
end
|
end
|
||||||
[:api, :username, :password].each do |key|
|
[:api, :username].each do |key|
|
||||||
if config[key].nil? or config[key].empty?
|
if config[key].nil? or config[key].empty?
|
||||||
abort(I18n.t("config.invalid.empty", :file => @@config_file, :key => key))
|
abort(I18n.t("config.invalid.empty", :file => @@config_file, :key => key))
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user