Merge pull request #10404 from chrisroberts/e-hyperv-ver-check
Ignore errors when generating new VM configuration
This commit is contained in:
commit
2272a0bfa7
|
@ -85,7 +85,7 @@ function New-VagrantVMVMCX {
|
||||||
VhdDestinationPath = Join-Path $DataPath "Virtual Hard Disks";
|
VhdDestinationPath = Join-Path $DataPath "Virtual Hard Disks";
|
||||||
VirtualMachinePath = $DataPath;
|
VirtualMachinePath = $DataPath;
|
||||||
}
|
}
|
||||||
$VMConfig = (Hyper-V\Compare-VM -Copy -GenerateNewID @NewVMConfig)
|
$VMConfig = (Hyper-V\Compare-VM -Copy -GenerateNewID @NewVMConfig -ErrorAction SilentlyContinue)
|
||||||
|
|
||||||
# If the config is empty it means the import failed. Attempt to provide
|
# If the config is empty it means the import failed. Attempt to provide
|
||||||
# context for failure
|
# context for failure
|
||||||
|
|
Loading…
Reference in New Issue