Skip to content
Snippets Groups Projects
Commit 89673d37 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Handle the args for disk.EnableUUID correctly

parent 859c00c5
No related branches found
No related tags found
No related merge requests found
......@@ -9,15 +9,14 @@ module ForemanVmwareAdvanced
def parse_args_with_vmware_advanced(inp_args)
args = parse_args_without_vmware_advanced(inp_args)
args[:extra_config] = {
'bios.bootOrder' => 'ethernet0',
'svga.autodetect' => 'TRUE'
}
args[:extra_config] = (args[:extra_config] || {}).merge(
'bios.bootOrder'.to_sym => 'ethernet0',
'svga.autodetect'.to_sym => 'TRUE'
)
if args[:compute_attributes] &&
args[:compute_attributes][:guest_id] &&
args[:compute_attributes][:guest_id].start_with?('win')
args[:extra_config]['disk.enableUUID'] = 'TRUE'
if args[:guest_id] &&
args[:guest_id].start_with?('win')
args[:extra_config]['disk.EnableUUID'.to_sym] = 'TRUE'
end
args
......
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