Commit 9900c45e authored by Jérémie Gaidamour's avatar Jérémie Gaidamour

[dev] oar-properties: Bug fix concerning the selection of the main network adapter

parent 734b2785
......@@ -25,7 +25,7 @@ def get_node_properties(cluster_uid, cluster, node_uid, node)
end
main_network_adapter = node['network_adapters'].values.find{ |na| na['enabled'] && na['mounted'] && na['interface'] =~ /ethernet/i && !na['management'] }
main_network_adapter = node['network_adapters'].values.find{ |na| na['enabled'] && na['mounted'] }
#main_network_adapter = node['network_adapters'].values.find{ |na| na['enabled'] && na['mounted'] }
raise MissingProperty, "Node #{node_uid} does not have a main network_adapter" unless main_network_adapter
# h['host'] = main_network_adapter['network_address']
......
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