Don't limit disk number for hyper-v for now

This commit is contained in:
Brian Cain 2020-04-03 16:21:46 -07:00
parent a20418ad43
commit a7a779586a
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0

View File

@ -9,10 +9,6 @@ module VagrantPlugins
module ConfigureDisks
LOGGER = Log4r::Logger.new("vagrant::plugins::hyperv::configure_disks")
# The max amount of disks that can be attached to a single device in a controller
# TODO: Figure out if there's a limit for Hyper-V guests
MAX_DISK_NUMBER = 30.freeze
# @param [Vagrant::Machine] machine
# @param [VagrantPlugins::Kernel_V2::VagrantConfigDisk] defined_disks
# @return [Hash] configured_disks - A hash of all the current configured disks
@ -21,11 +17,6 @@ module VagrantPlugins
return {} if !Vagrant::Util::Experimental.feature_enabled?("disks")
if defined_disks.size > MAX_DISK_NUMBER
# you can only attach up to 30 disks per controller, INCLUDING the primary disk
raise Vagrant::Errors::VirtualBoxDisksDefinedExceedLimit
end
machine.ui.info(I18n.t("vagrant.cap.configure_disks.start"))
current_disks = machine.provider.driver.list_hdds