plugins/providers/hyperv/scripts/create_snapshot.ps1 in vagrant-unbundled-2.1.2.0 vs plugins/providers/hyperv/scripts/create_snapshot.ps1 in vagrant-unbundled-2.1.4.0

- old
+ new

@@ -8,10 +8,17 @@ $ErrorActionPreference = "Stop" try { $VM = Hyper-V\Get-VM -Id $VmId + $ChkPnt = $VM.CheckpointType + if($ChkPnt -eq "Disabled") { + Hyper-V\Set-VM -VM $VM -CheckpointType "Standard" + } Hyper-V\Checkpoint-VM $VM -SnapshotName $SnapName + if($ChkPnt -eq "Disabled") { + Hyper-V\Set-VM -VM $VM -CheckpointType "Disabled" + } } catch { Write-ErrorMessage "Failed to create snapshot: ${PSItem}" exit 1 }