Commit d4a61a0d authored by Lucas Nussbaum's avatar Lucas Nussbaum

[dev] add support for removing rate when it's 0

parent ce30509e
......@@ -9,6 +9,13 @@ Dir['input/grid5000/sites/*/clusters/*/nodes/*.yaml'].each do |f|
# remove bios.configuration
# remove rate when it's 0
d.values.first['network_adapters'].each_pair do |name, na|
next if not na['rate']
next if na['rate'] != 0
fd = File::new(f, 'w')
fd.puts("# Generated by g5k-checks (g5k-checks -m api)")
fd.puts d.to_yaml
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