lib/kitchen/driver/powershell.rb in kitchen-hyperv-0.4.0 vs lib/kitchen/driver/powershell.rb in kitchen-hyperv-0.4.1

- old
+ new

@@ -121,13 +121,20 @@ UseDynamicMemory = "#{config[:dynamic_memory]}" DynamicMemoryMinBytes = #{config[:dynamic_memory_min_bytes]} DynamicMemoryMaxBytes = #{config[:dynamic_memory_max_bytes]} boot_iso_path = "#{boot_iso_path}" EnableGuestServices = "#{config[:enable_guest_services]}" - AdditionalDisks = @("#{@additional_disk_objects.join('","') || ''}") + #{additional_disks} } New-KitchenVM @NewVMParams | ConvertTo-Json NEWVM + end + + def additional_disks + return if config[:additional_disks].nil? + <<-EOH + AdditionalDisks = @("#{@additional_disk_objects.join('","')}") + EOH end def vm_details_ps <<-DETAILS