Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
b6fc178f
Commit
b6fc178f
authored
Dec 11, 2012
by
Simon Delamare
Browse files
[admin] Only generate OAR comment property on node creation
parent
0628c309
Changes
2
Show whitespace changes
Inline
Side-by-side
Rakefile
View file @
b6fc178f
...
@@ -189,6 +189,8 @@ namespace :oar do
...
@@ -189,6 +189,8 @@ namespace :oar do
# by default, maintenance is YES when creating new resources
# by default, maintenance is YES when creating new resources
command
.
concat
(
' -p maintenance="YES"'
)
command
.
concat
(
' -p maintenance="YES"'
)
end
end
# by default, an Alive node has comment "OK"
command
.
concat
(
' -p comment="OK"'
)
end
end
command
.
concat
(
" -p "
).
concat
(
export
.
to_a
.
map
{
|
(
k
,
v
)
|
command
.
concat
(
" -p "
).
concat
(
export
.
to_a
.
map
{
|
(
k
,
v
)
|
if
v
.
nil?
if
v
.
nil?
...
...
generators/lib/grid5000/node.rb
View file @
b6fc178f
...
@@ -43,7 +43,6 @@ module Grid5000
...
@@ -43,7 +43,6 @@ module Grid5000
h
[
'memcore'
]
=
properties
[
'main_memory'
][
'ram_size'
]
/
properties
[
'architecture'
][
'smt_size'
]
/
MiB
h
[
'memcore'
]
=
properties
[
'main_memory'
][
'ram_size'
]
/
properties
[
'architecture'
][
'smt_size'
]
/
MiB
h
[
'memcpu'
]
=
properties
[
'main_memory'
][
'ram_size'
]
/
properties
[
'architecture'
][
'smp_size'
]
/
MiB
h
[
'memcpu'
]
=
properties
[
'main_memory'
][
'ram_size'
]
/
properties
[
'architecture'
][
'smp_size'
]
/
MiB
h
[
'memnode'
]
=
properties
[
'main_memory'
][
'ram_size'
]
/
MiB
h
[
'memnode'
]
=
properties
[
'main_memory'
][
'ram_size'
]
/
MiB
h
[
'comment'
]
=
properties
[
'comment'
]
||
"OK"
properties
[
"gpu"
]
||=
{}
properties
[
"gpu"
]
||=
{}
h
[
'gpu'
]
=
properties
[
'gpu'
][
'gpu'
]
?
"YES"
:
"NO"
h
[
'gpu'
]
=
properties
[
'gpu'
][
'gpu'
]
?
"YES"
:
"NO"
properties
[
"monitoring"
]
||=
{}
properties
[
"monitoring"
]
||=
{}
...
...
Write
Preview
Supports
Markdown
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