mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Use uppercase Name for getting vm name
This commit is contained in:
parent
c9b2e609a0
commit
fb39bd7ed0
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ param(
|
|||
|
||||
try {
|
||||
$VM = Hyper-V\Get-VM -Id $VmId
|
||||
$Disks = @(Hyper-V\Get-VMHardDiskDrive -VMName $VM.name)
|
||||
$Disks = @(Hyper-V\Get-VMHardDiskDrive -VMName $VM.Name)
|
||||
} catch {
|
||||
Write-ErrorMessage "Failed to retrieve all disk info from ${VM}: ${PSItem}"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue