Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit b6fc178f authored by Simon Delamare's avatar Simon Delamare

[admin] Only generate OAR comment property on node creation

parent 0628c309
......@@ -189,6 +189,8 @@ namespace :oar do
# by default, maintenance is YES when creating new resources
command.concat(' -p maintenance="YES"')
end
# by default, an Alive node has comment "OK"
command.concat(' -p comment="OK"')
end
command.concat(" -p ").concat( export.to_a.map{|(k,v)|
if v.nil?
......
......@@ -43,7 +43,6 @@ module Grid5000
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['memnode'] = properties['main_memory']['ram_size']/MiB
h['comment'] = properties['comment'] || "OK"
properties["gpu"] ||= {}
h['gpu'] = properties['gpu']['gpu'] ? "YES" : "NO"
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