More descriptive name for disk data

This commit is contained in:
Brian Cain 2020-01-15 16:01:03 -08:00
parent 91e9de79a9
commit 4a4a48b69c
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0

View File

@ -110,9 +110,8 @@ module VagrantPlugins
# note: this might not be required... :thinking: needs more testing
LOGGER.info("Attempting to create a new disk file '#{disk_file}' of size '#{disk_config.size}' bytes")
var = machine.provider.driver.create_disk(disk_file, disk_config.size, disk_ext.upcase)
# grab uuid from var, might also need disk name
disk_metadata = {uuid: var.split(':').last.strip, name: disk_config.name}
disk_var = machine.provider.driver.create_disk(disk_file, disk_config.size, disk_ext.upcase)
disk_metadata = {uuid: disk_var.split(':').last.strip, name: disk_config.name}
# TODO: Determine what port and device to attach disk to???
# look at guest_info and see what is in use