From b66a61a58d7d8340b27086bbffd9e5f23d72e329 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Tue, 14 Apr 2020 13:16:44 -0700 Subject: [PATCH] Add Dismount-VHD driver method for hyper-v --- plugins/providers/hyperv/driver.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/providers/hyperv/driver.rb b/plugins/providers/hyperv/driver.rb index d7fcb6521..d459905d8 100644 --- a/plugins/providers/hyperv/driver.rb +++ b/plugins/providers/hyperv/driver.rb @@ -82,6 +82,10 @@ module VagrantPlugins execute(:get_vhd, DiskFilePath: disk_file_path) end + def dismount_disk(disk_file_path) + execute(:dismount_vhd, DiskFilePath: disk_file_path) + end + ######## ######## ########