mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Actually compare disk size with requested size
This commit is contained in:
parent
b6c99510c4
commit
b79d6bdc27
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ module VagrantPlugins
|
|||
# Hyper-V returns disk size in bytes
|
||||
requested_disk_size = disk_config.size
|
||||
disk_actual = machine.provider.driver.get_disk(defined_disk["Path"])
|
||||
defined_disk_size = disk_config.size
|
||||
defined_disk_size = disk_actual["Size"]
|
||||
|
||||
if defined_disk_size > requested_disk_size
|
||||
# TODO: Check if disk (maybe use file path) is of type `VHDX`. If not, the disk cannot be shrunk
|
||||
|
|
|
|||
Loading…
Reference in a new issue