Merge branch 'fix/get-parametervalue-do-not-return-customfields' into develop

This commit is contained in:
Petri Asikainen 2021-05-16 08:38:01 +03:00
commit 589c34539c

View file

@ -26,13 +26,13 @@ function Get-ParameterValue {
$Parameters $Parameters
, ,
[string[]]$DefaultExcludeParameter = @("id", "url", "apiKey", 'Debug', 'Verbose') [string[]]$DefaultExcludeParameter = @("id", "url", "apiKey", 'Debug', 'Verbose','RequestType','customfields')
) )
if ($MyInvocation.Line[($MyInvocation.OffsetInLine - 1)] -ne '.') { if ($MyInvocation.Line[($MyInvocation.OffsetInLine - 1)] -ne '.') {
throw "Get-ParameterValue must be dot-sourced, like this: . Get-ParameterValues" throw "Get-ParameterValue must be dot-sourced, like this: . Get-ParameterValues"
} }
$ParameterValues = @{} $ParameterValues = @{}
foreach ($parameter in $Parameters.GetEnumerator()) { foreach ($parameter in $Parameters.GetEnumerator()) {