Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
3a92983d
Commit
3a92983d
authored
Oct 06, 2020
by
Baptiste Jonglez
Committed by
JONGLEZ Baptiste
Nov 02, 2020
Browse files
[lib] Don't fail on missing keys when bootstrapping a cluster
parent
9167c721
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/refrepo/input_loader.rb
View file @
3a92983d
...
...
@@ -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'
]
=
{}
end
hn
[
'software'
][
'postinstall-version'
]
=
h
[
'software'
][
'postinstall-version'
]
hn
[
'software'
][
'forced-deployment-timestamp'
]
=
h
[
'software'
][
'forced-deployment-timestamp'
]
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment