Update VMware.HV.Helper.psm1 (#469)
This commit is contained in:
@@ -6134,9 +6134,9 @@ function Set-HVFarm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$updates = @()
|
$updates = @()
|
||||||
if ($key -and $value) {
|
if ($PSBoundParameters.ContainsKey("key") -and $PSBoundParameters.ContainsKey("value")) {
|
||||||
$updates += Get-MapEntry -key $key -value $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"
|
Write-Error "Both key:[$key] and value:[$value] need to be specified"
|
||||||
}
|
}
|
||||||
if ($spec) {
|
if ($spec) {
|
||||||
|
|||||||
Reference in New Issue
Block a user