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
505df32e
Commit
505df32e
authored
Mar 31, 2015
by
Simon Delamare
Browse files
[generator] Handle OAR ppty cluster_priority (from Ref API's cluster age by default)
parent
1fc8fb8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
generators/lib/grid5000/node.rb
View file @
505df32e
...
...
@@ -52,6 +52,7 @@ module Grid5000
h
[
'wattmeter'
]
=
(
properties
[
'monitoring'
][
'wattmeter'
].
is_a?
(
String
)
and
properties
[
'monitoring'
][
'wattmeter'
].
upcase
==
"SHARED"
)
?
"SHARED"
\
:
properties
[
'monitoring'
][
'wattmeter'
]
?
"YES"
:
"NO"
h
[
'rconsole'
]
=
properties
[
'monitoring'
][
'rconsole'
]
==
false
?
"NO"
:
"YES"
h
[
'cluster_priority'
]
=
cluster
.
properties
[
'priority'
]
||
Time
.
httpdate
(
cluster
.
properties
[
'created_at'
]).
strftime
(
"%Y%m"
)
h
}
}
...
...
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