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
......@@ -222,6 +222,9 @@ def add_software(h)
h['sites'].each_pair do |site_uid, hs|
hs['clusters'].each_pair do |cluster_uid, hc|
hc['nodes'].each_pair do |node_uid, hn|
if not hn.key?('software')
hn['software'] = {}
hn['software']['postinstall-version'] = h['software']['postinstall-version']
hn['software']['forced-deployment-timestamp'] = h['software']['forced-deployment-timestamp']
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