Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f874aa8f authored by Pierre Neyron's avatar Pierre Neyron :bicyclist:
Browse files

[gen/oar-properties] add the chassis to nodes properties

this is needed to show the possible values in the wiki page oar-properties
parent 2bbb0d1b
No related branches found
No related tags found
1 merge request!100Update the OAR-Properties wiki page
......@@ -403,6 +403,7 @@ def get_ref_node_properties_internal(cluster_uid, cluster, node_uid, node)
h['cputype'] = [node['processor']['model'], node['processor']['version']].join(' ')
h['cpufreq'] = node['processor']['clock_speed'] / 1_000_000_000.0
h['disktype'] = (node['storage_devices'].first || {})['interface']
h['chassis'] = [node['chassis']['manufacturer'], node['chassis']['name'], node['chassis']['serial']].join(' ')
# ETH
ni_mountable = node['network_adapters'].select { |na| /^eth[0-9]*$/.match(na['device']) && (na['enabled'] == true && (na['mounted'] == true || na['mountable'] == true)) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment