Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
grid5000
reference-repository
Commits
4caa0359
Commit
4caa0359
authored
Apr 17, 2019
by
Lucas Nussbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] bugfix: define info in all cases
parent
dfe8f615
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lib/refrepo/gen/oar-properties.rb
lib/refrepo/gen/oar-properties.rb
+6
-1
No files found.
lib/refrepo/gen/oar-properties.rb
View file @
4caa0359
...
...
@@ -658,7 +658,12 @@ def generate_oar_properties(options)
properties
[
'diff'
][
site_uid
][
type
][
key
]
=
properties_ref
.
select
{
|
k
,
_v
|
diff_keys
.
include?
(
k
)
}
# Verbose output
info
=
type
==
'default'
?
' new node !'
:
' new disk !'
if
properties
[
'oar'
][
site_uid
][
type
][
key
].
nil?
if
properties
[
'oar'
][
site_uid
][
type
][
key
].
nil?
info
=
((
type
==
'default'
)
?
' new node !'
:
' new disk !'
)
else
info
=
''
end
case
options
[
:verbose
]
when
1
puts
"
#{
key
}
:
#{
info
}
"
if
info
!=
''
...
...
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