Update how to check for empty string

This commit is contained in:
Brian Cain 2020-02-10 13:21:27 -08:00
parent 00d7ecb57f
commit 5bc0b28116
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0

View File

@ -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