lib/hygroscope/cli.rb in hygroscope-1.3.0 vs lib/hygroscope/cli.rb in hygroscope-1.3.1
- old
+ new
@@ -134,10 +134,10 @@
# If this is an update and ask was not specified, set any missing
# parameters to use_previous_value
if action == 'update' && !options[:ask]
missing.each do |key|
- p.set(key, nil, use_previous_value: true)
+ p.set(key, nil, use_previous_value: true) unless p.get(key)
end
else
# Prompt for each missing parameter and save it in the paramset object
missing.each do |key|
# Do not prompt for keys prefixed with the "Hygroscope" reserved word.