1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[core] delete nil valued keys from config

This commit is contained in:
geemus 2011-09-06 13:41:01 -05:00
parent 4f466e2672
commit 92529dd895

View file

@ -118,7 +118,9 @@ module Fog
def coerce_options(options)
options.each do |key, value|
value_string = value.to_s.downcase
if value == value_string.to_i.to_s
if value.nil?
options.delete(key)
elsif value == value_string.to_i.to_s
options[key] = value.to_i
else
options[key] = case value_string