Land #7121, Don't clobber nil strings when there are empty strings in the config file
commit
8bda3c6382
|
@ -165,7 +165,12 @@ protected
|
|||
# Is it a VAR=VAL?
|
||||
elsif (md = line.match(/^(.+?)=(.*)$/))
|
||||
if (active_group)
|
||||
self[active_group][md[1]] = md[2]
|
||||
var, val = md[1], md[2]
|
||||
|
||||
# don't clobber datastore nils with ""
|
||||
unless val.empty?
|
||||
self[active_group][var] = val
|
||||
end
|
||||
end
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue