Merge pull request #10404 from chrisroberts/e-hyperv-ver-check

Ignore errors when generating new VM configuration
This commit is contained in:
Chris Roberts 2018-11-13 15:21:03 -08:00 committed by GitHub
commit 2272a0bfa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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