Raise error if guest has no available ports for attaching disks

This commit is contained in:
Brian Cain 2020-02-11 13:06:57 -08:00
parent 3662344d2e
commit 6fcc5fa31a
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0

View File

@ -179,6 +179,7 @@ module VagrantPlugins
if dsk_info[:port].empty?
# This likely only occurs if additional disks have been added outside of Vagrant configuration
LOGGER.warn("There are no more available ports to attach disks to for the SATA Controller. Clear up some space on the SATA controller to attach new disks.")
raise Vagrant::Errors::VirtualBoxDisksDefinedExceedLimit
end
dsk_info