lib/kitchen/driver/powershell.rb in kitchen-hyperv-0.1.4 vs lib/kitchen/driver/powershell.rb in kitchen-hyperv-0.1.5
- old
+ new
@@ -81,10 +81,10 @@
# rubocop:disable Metrics/MethodLength
def new_vm_ps
<<-NEWVM
$NewVMParams = @{
- Generation = 1
+ Generation = #{config[:vm_generation]}
MemoryStartupBytes = #{config[:memory_startup_bytes]}
Name = "#{instance.name}"
Path = "#{kitchen_vm_path}"
VHDPath = "#{differencing_disk_path}"
SwitchName = "#{config[:vm_switch]}"