Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 5361da2a authored by RINGOT Patrice's avatar RINGOT Patrice
Browse files

[wiki hardware generator] get rid of sum

parent 4a4ed3d3
No related branches found
No related tags found
No related merge requests found
Pipeline #280137 passed
...@@ -513,7 +513,7 @@ class G5KHardwareGenerator < WikiGenerator ...@@ -513,7 +513,7 @@ class G5KHardwareGenerator < WikiGenerator
interfaces = {} interfaces = {}
interfaces['details'] = node_interfaces.map{ |v| v['name'] + " (#{v['sriov_totalvfs']} VFs)" }.sort.join(', ') interfaces['details'] = node_interfaces.map{ |v| v['name'] + " (#{v['sriov_totalvfs']} VFs)" }.sort.join(', ')
interfaces['vfs_sum'] = node_interfaces.map{ |v| v['sriov_totalvfs'] }.sum interfaces['vfs_sum'] = node_interfaces.map{ |v| v['sriov_totalvfs'] }.inject(0,:+)
interface_add(network_interfaces, node_uid, interfaces) if node_interfaces.count > 0 interface_add(network_interfaces, node_uid, interfaces) if node_interfaces.count > 0
end end
} }
......
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