diff --git a/lib/refrepo/input_loader.rb b/lib/refrepo/input_loader.rb index 46a5535c57850efe5585059c34edbfa0a706ea5f..a2fac2802c62ebf817736872704cf7f2e9a67312 100644 --- a/lib/refrepo/input_loader.rb +++ b/lib/refrepo/input_loader.rb @@ -77,7 +77,7 @@ def add_kavlan_ips(h) # forget about allocated ips for local vlans, since we are starting a new site allocated.delete_if { |k, v| v[3] == 'local' } hs['clusters'].each_pair do |cluster_uid, hc| - next if hc['kavlan'] and hc['kavlan'] == false # skip clusters where kavlan is globally set to false (used for initial cluster installation) + next if !hc['kavlan'] # skip clusters where kavlan is globally set to false (used for initial cluster installation) hc['nodes'].each_pair do |node_uid, hn| raise "Node hash for #{node_uid} is nil" if hn.nil? raise "Old kavlan data in input/ for #{node_uid}" if hn.has_key?('kavlan')