Commit 634c83c6 authored by PARISOT Clement's avatar PARISOT Clement

[rake] Fix empty cluster field for netlinks generation

parent 92014963
......@@ -363,6 +363,9 @@ module G5K
site_pdu_outlets={}
metric_nodes={}
node_monitoring_wattmeter={}
if site[:clusters].nil?
return
end
unless site[:pdus].nil?
site[:pdus].each do |pdu|
site_pdus[pdu[:uid]]=pdu[:sensors][0][:power][:per_outlets] rescue nil
......
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