plugins/providers/hyperv/scripts/check_hyperv.ps1 in vagrant-unbundled-2.1.1.0 vs plugins/providers/hyperv/scripts/check_hyperv.ps1 in vagrant-unbundled-2.1.2.0
- old
+ new
@@ -1,10 +1,8 @@
-# Include the following modules
-$Dir = Split-Path $script:MyInvocation.MyCommand.Path
-. ([System.IO.Path]::Combine($Dir, "utils\write_messages.ps1"))
+#Requires -Modules VagrantMessages
-$check = $(-Not (-Not (Get-Command "Hyper-V\Get-VMSwitch" -errorAction SilentlyContinue)))
+$check = $(-Not (-Not (Get-Command "Hyper-V\Get-VMSwitch" -ErrorAction SilentlyContinue)))
$result = @{
result = $check
}
-Write-Output-Message $(ConvertTo-Json $result)
+Write-OutputMessage $(ConvertTo-Json $result)