Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3a92983d authored by Baptiste Jonglez's avatar Baptiste Jonglez Committed by JONGLEZ Baptiste
Browse files

[lib] Don't fail on missing keys when bootstrapping a cluster

parent 9167c721
No related branches found
No related tags found
1 merge request!145Fix for issues preventing cluster bootstrap
...@@ -222,6 +222,9 @@ def add_software(h) ...@@ -222,6 +222,9 @@ def add_software(h)
h['sites'].each_pair do |site_uid, hs| h['sites'].each_pair do |site_uid, hs|
hs['clusters'].each_pair do |cluster_uid, hc| hs['clusters'].each_pair do |cluster_uid, hc|
hc['nodes'].each_pair do |node_uid, hn| hc['nodes'].each_pair do |node_uid, hn|
if not hn.key?('software')
hn['software'] = {}
end
hn['software']['postinstall-version'] = h['software']['postinstall-version'] hn['software']['postinstall-version'] = h['software']['postinstall-version']
hn['software']['forced-deployment-timestamp'] = h['software']['forced-deployment-timestamp'] hn['software']['forced-deployment-timestamp'] = h['software']['forced-deployment-timestamp']
end end
......
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