From 18b9ccd0a5e538c8c0132f2f1221dc7cfacc18d9 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Wed, 22 Apr 2020 15:51:45 -0700 Subject: [PATCH] Remove unused local var --- plugins/providers/hyperv/cap/configure_disks.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/providers/hyperv/cap/configure_disks.rb b/plugins/providers/hyperv/cap/configure_disks.rb index 1a873da3f..9ee570956 100644 --- a/plugins/providers/hyperv/cap/configure_disks.rb +++ b/plugins/providers/hyperv/cap/configure_disks.rb @@ -59,8 +59,7 @@ module VagrantPlugins # This is not required for newly created disks, as its metadata is # set when creating and attaching the disk. This is only for the primary # disk, since it already exists. - real_disk_info = machine.provider.driver.get_disk(current_disk["Path"]) - current_disk = real_disk_info + current_disk = machine.provider.driver.get_disk(current_disk["Path"]) else # Hyper-V disk names aren't the actual names of the disk, so we have # to grab the name from the file path instead