Commit 7bb9a4eb authored by Lucas Nussbaum's avatar Lucas Nussbaum

[dev] add script to normalize input

parent 6353540f
#!/usr/bin/ruby -w
require 'yaml'
require 'pp'
Dir['input/grid5000/sites/*/clusters/*/nodes/*.yaml'].each do |f|
d = YAML::load(IO::read(f))
# remove bios.configuration
#d.values.first['bios'].delete('configuration')
fd = File::new(f, 'w')
fd.puts("# Generated by g5k-checks (g5k-checks -m api)")
fd.puts d.to_yaml
fd.close
end
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