Begin to handle cleaning up disks with hyper-v

This commit is contained in:
Brian Cain 2020-04-13 16:08:49 -07:00
parent 8f6b18f992
commit 2108b5a695
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0

View File

@ -31,6 +31,17 @@ module VagrantPlugins
# find d in defined_disk
# if found, continue on
# else, remove the disk
# look at Path instead of Name or UUID
disk_name = File.basename(d["path"], '.*')
dsk = defined_disks.select { |dk| dk.name == disk_name }
primary_disk_uuid = ""
## todo: finish this
if !dsk.empty? || d["uuid"] == primary_disk_uuid
next
else
#remove disk from guest, and remove from system
end
end
end
end