From 5ac8bb8620aecdb76b57942f69d0793db0d7d3a8 Mon Sep 17 00:00:00 2001 From: Tony Apuzzo Date: Thu, 7 Jun 2018 15:00:09 -0600 Subject: [PATCH] Correct typo, $Enable instead of $enabled. --- .../providers/hyperv/scripts/set_vm_integration_services.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/providers/hyperv/scripts/set_vm_integration_services.ps1 b/plugins/providers/hyperv/scripts/set_vm_integration_services.ps1 index a28d1229b..458ddbaf3 100644 --- a/plugins/providers/hyperv/scripts/set_vm_integration_services.ps1 +++ b/plugins/providers/hyperv/scripts/set_vm_integration_services.ps1 @@ -19,9 +19,9 @@ try { } try { - Set-VagrantVMService -VM $VM -Name $Name -Enable $enabled + Set-VagrantVMService -VM $VM -Name $Name -Enable $Enable } catch { - if($enabled){ $action = "enable" } else { $action = "disable" } + if($Enable){ $action = "enable" } else { $action = "disable" } Write-Error-Message "Failed to ${action} VM integration service ${Name}: ${PSItem}" exit 1 }