Commit b6fc178f authored by Simon Delamare's avatar Simon Delamare
Browse files

[admin] Only generate OAR comment property on node creation

parent 0628c309
...@@ -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?
......
...@@ -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"] ||= {}
......
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