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

Don't break on first VM creation

parent 8ae2494b
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,9 @@ module ForemanVmwareAdvanced ...@@ -14,7 +14,9 @@ module ForemanVmwareAdvanced
'svga.autodetect' => 'TRUE' 'svga.autodetect' => 'TRUE'
} }
if args[:compute_attributes][:guest_id].start_with? 'win' if args[:compute_attributes] &&
args[:compute_attributes][:guest_id] &&
args[:compute_attributes][:guest_id].start_with?('win')
args[:extra_config]['disk.enableUUID'] = 'TRUE' args[:extra_config]['disk.enableUUID'] = 'TRUE'
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment