From 5bc0b28116cf6b3626f8aeff7802293f811a2edd Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Mon, 10 Feb 2020 13:21:27 -0800 Subject: [PATCH] Update how to check for empty string --- plugins/providers/virtualbox/cap/configure_disks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/virtualbox/cap/configure_disks.rb b/plugins/providers/virtualbox/cap/configure_disks.rb index fba23b02c..d790d2a18 100644 --- a/plugins/providers/virtualbox/cap/configure_disks.rb +++ b/plugins/providers/virtualbox/cap/configure_disks.rb @@ -176,7 +176,7 @@ module VagrantPlugins next_available_port = ((0..(MAX_DISK_NUMBER-1)).to_a - used_ports).first dsk_info[:port] = next_available_port.to_s - if dsk_info[:port] == "" + 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.") end