Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8d56e600 authored by MICHON Nicolas's avatar MICHON Nicolas
Browse files

[dev] oar-properties: Added mic to management properties

parent b502a18a
No related branches found
No related tags found
No related merge requests found
......@@ -91,11 +91,15 @@ def get_node_properties(cluster_uid, cluster, node_uid, node)
h['gpu_count'] = 0
end
if (node['mic'])
h['mic'] = "YES"
else
h['mic'] = "NO"
end
node['monitoring'] ||= {}
h['wattmeter'] = case node['monitoring']['wattmeter'] when true; true; when false; false when nil; false; else node['monitoring']['wattmeter'].upcase end
# h['rconsole'] = node['monitoring']['rconsole']
h['cluster_priority'] = (cluster['priority'] || Time.parse(cluster['created_at'].to_s).strftime('%Y%m')).to_i
h['production'] = false # default
......@@ -193,7 +197,6 @@ def ignore_keys()
"jobs", # This property exists when a job is running
"last_available_upto",
"last_job_date",
"mic", # TODO
"network_address", # TODO
"next_finaud_decision",
"next_state",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment