Commit 505df32e authored by Simon Delamare's avatar Simon Delamare

[generator] Handle OAR ppty cluster_priority (from Ref API's cluster age by default)

parent 1fc8fb8f
......@@ -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
}
}
......
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