Skip to content

Commit

Permalink
UPDATE Get-PASParameter
Browse files Browse the repository at this point in the history
Added check for presence of unwanted parameter value - reduces debug
output.
  • Loading branch information
pspete committed Mar 15, 2018
1 parent ac90611 commit be52689
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions psPAS/Private/Get-PASParameter.ps1
Expand Up @@ -95,10 +95,13 @@ Hashtable/$PSBoundParameters object, with defined parameters removed.

ForEach-Object {

#TODO: add condition to reduce debug output - only report on removed params
Write-Debug "Removing Parameter: $_"
#remove specified parameters from passed values
$Parameters.Remove($_)
If($Parameters.Contains($_)) {

Write-Debug "Removing Parameter: $_"
#remove specified parameters from passed values
$Parameters.Remove($_)

}

}

Expand Down

0 comments on commit be52689

Please sign in to comment.