Update VMware.HV.Helper.psm1 (#469)

This commit is contained in:
Nam Tran
2021-08-23 18:43:37 +07:00
committed by GitHub
parent 3c961963f1
commit dbb570e009

View File

@@ -6134,9 +6134,9 @@ function Set-HVFarm {
}
$updates = @()
if ($key -and $value) {
if ($PSBoundParameters.ContainsKey("key") -and $PSBoundParameters.ContainsKey("value")) {
$updates += Get-MapEntry -key $key -value $value
} elseif ($key -or $value) {
} elseif ($PSBoundParameters.ContainsKey("key") -or $PSBoundParameters.ContainsKey("value")) {
Write-Error "Both key:[$key] and value:[$value] need to be specified"
}
if ($spec) {