lib/beaker-hostgenerator/util.rb in beaker-hostgenerator-0.2.0 vs lib/beaker-hostgenerator/util.rb in beaker-hostgenerator-0.3.0
- old
+ new
@@ -43,13 +43,13 @@
File.open(path, 'w') do |file|
file.write(config.to_yaml)
end
end
- def get_platforms(hypervisor_type='vmpooler')
+ def get_platforms(hypervisor_type='vmpooler', bhg_version=0)
case hypervisor_type
when /vmpooler/
- osinfo = BeakerHostGenerator::Data::Vmpooler::OSINFO
+ osinfo = BeakerHostGenerator::Data::Vmpooler.get_osinfo(bhg_version)
else
raise "Invalid hypervisor #{hypervisor_type}"
end
return osinfo
end