From af20d4a426965e523f80c191c2533a9504d1ef8e Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Tue, 19 May 2020 09:19:16 -0700 Subject: [PATCH] Remove old comment --- plugins/providers/hyperv/cap/configure_disks.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/plugins/providers/hyperv/cap/configure_disks.rb b/plugins/providers/hyperv/cap/configure_disks.rb index e2db93d26..1a335d8d0 100644 --- a/plugins/providers/hyperv/cap/configure_disks.rb +++ b/plugins/providers/hyperv/cap/configure_disks.rb @@ -88,19 +88,6 @@ module VagrantPlugins elsif compare_disk_size(machine, disk, current_disk) disk_metadata = resize_disk(machine, disk, current_disk) else - # TODO OLD: What if it needs to be resized? - - # Can't use "attached" attribute, because it is false when the guest - # is powered off - # - #disk_info = machine.provider.driver.get_disk(current_disk["Path"]) - #if disk_info["Attached"] == false - # LOGGER.warn("Disk '#{disk.name}' is not connected to guest '#{machine.name}', Vagrant will attempt to connect disk to guest") - # machine.provider.driver.attach_disk(nil, nil, nil, current_disk["Path"]) - #else - # LOGGER.info("No further configuration required for disk '#{disk.name}'") - #end - disk_metadata = {UUID: current_disk["DiskIdentifier"], Name: disk.name, Path: current_disk["Path"]} if disk.primary disk_metadata[:primary] = true