Skip to content

Commit

Permalink
force script scope
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbarron committed Nov 8, 2023
1 parent d74a2e5 commit 740b434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ServiceNow/Public/New-ServiceNowSession.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ function New-ServiceNowSession {
}
}

$PSDefaultParameterValues['Invoke-WebRequest:TimeoutSec'] = $TimeoutSec
$PSDefaultParameterValues['Invoke-RestMethodt:TimeoutSec'] = $TimeoutSec
$script:PSDefaultParameterValues['Invoke-WebRequest:TimeoutSec'] = $TimeoutSec
$script:PSDefaultParameterValues['Invoke-RestMethodt:TimeoutSec'] = $TimeoutSec

switch -Wildcard ($PSCmdLet.ParameterSetName) {
'OAuth*' {
Expand Down

0 comments on commit 740b434

Please sign in to comment.