Commit 4caa0359 authored by Lucas Nussbaum's avatar Lucas Nussbaum

[dev] bugfix: define info in all cases

parent dfe8f615
...@@ -658,7 +658,12 @@ def generate_oar_properties(options) ...@@ -658,7 +658,12 @@ def generate_oar_properties(options)
properties['diff'][site_uid][type][key] = properties_ref.select { |k, _v| diff_keys.include?(k) } properties['diff'][site_uid][type][key] = properties_ref.select { |k, _v| diff_keys.include?(k) }
# Verbose output # Verbose output
info = type == 'default' ? ' new node !' : ' new disk !' if properties['oar'][site_uid][type][key].nil? if properties['oar'][site_uid][type][key].nil?
info = ((type == 'default') ? ' new node !' : ' new disk !')
else
info = ''
end
case options[:verbose] case options[:verbose]
when 1 when 1
puts "#{key}:#{info}" if info != '' puts "#{key}:#{info}" if info != ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment