Skip to content

Commit

Permalink
New-TssSession - bug fix when login failure stop throwing warning abo…
Browse files Browse the repository at this point in the history
…ut version
  • Loading branch information
wsmelton committed Oct 14, 2021
1 parent 0c9334b commit aefa624
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/functions/authentication/New-TssSession.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ function New-TssSession {
return
}
}
if (-not $outputTssSession.AccessToken) {
return
}
$outputTssSession.StartTime = [datetime]::Now
Write-Verbose "Setting start time for session: $($outputTssSession.StartTime)"
if ($ignoreVersion -or ((Test-Path variable:tss_ignoreversioncheck) -and $tss_ignoreversioncheck)) {
Expand Down

0 comments on commit aefa624

Please sign in to comment.