Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 684709bf authored by RINGOT Patrice's avatar RINGOT Patrice
Browse files

skip clusters where kavlan is globally set to false (used for initial cluster installation)

parent d8072f22
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment