mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Resize hyper-v disks
This commit is contained in:
parent
a6e025f3f0
commit
f3f229c681
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ param(
|
|||
[Parameter(Mandatory=$true)]
|
||||
[string]$VmId,
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string]$DiskFilePath
|
||||
[string]$DiskFilePath,
|
||||
[Parameter(Mandatory=$true)]
|
||||
[UInt64]$DiskSize
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue