From e6093dd709e303cab081c99b84cf4dd5499984b9 Mon Sep 17 00:00:00 2001 From: Bjorn Brala Date: Wed, 19 Oct 2016 21:03:48 +0200 Subject: [PATCH] The virtual machine doesnt need 'Virtual Machines' in its path, this is created when importing. --- plugins/providers/hyperv/scripts/import_vm_vmcx.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/hyperv/scripts/import_vm_vmcx.ps1 b/plugins/providers/hyperv/scripts/import_vm_vmcx.ps1 index b499285c8..55cf9db8e 100644 --- a/plugins/providers/hyperv/scripts/import_vm_vmcx.ps1 +++ b/plugins/providers/hyperv/scripts/import_vm_vmcx.ps1 @@ -27,7 +27,7 @@ $VmProperties = @{ Path = $vm_config_file SnapshotFilePath = Join-Path $data_path 'Snapshots' VhdDestinationPath = Join-Path $data_path 'Virtual Hard Disks' - VirtualMachinePath = Join-Path $data_path 'Virtual Machines' + VirtualMachinePath = $data_path } $vmConfig = (Compare-VM -Copy -GenerateNewID @VmProperties)