mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-15 18:55:47 +00:00
Merge branch 'fix/get-parametervalue-do-not-return-customfields' into develop
This commit is contained in:
commit
589c34539c
1 changed files with 2 additions and 2 deletions
|
|
@ -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()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue