Resize hyper-v disks

This commit is contained in:
Brian Cain 2020-04-13 14:57:01 -07:00
parent a6e025f3f0
commit f3f229c681
No known key found for this signature in database
GPG key ID: 9FC4639B2E4510A0
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ module VagrantPlugins
else
# might have to look at the path of the disk, as the disk name doesn't
# make any sense
current_disk = all_disks.select { |d| d["Disk Name"] == disk.name}.first
current_disk = all_disks.select { |d| File.basename(d["Path"], '.*') == disk.name}.first
end
current_disk

View file

@ -4,7 +4,7 @@ param(
[Parameter(Mandatory=$true)]
[string]$VmId,
[Parameter(Mandatory=$true)]
[string]$DiskFilePath
[string]$DiskFilePath,
[Parameter(Mandatory=$true)]
[UInt64]$DiskSize
)