Skip to content

Commit

Permalink
Test-DbaConnection - Fix for wrong data in failed connections (#9096)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonLond authored Sep 27, 2023
1 parent e344ef8 commit 59e3476
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/Test-DbaConnection.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ function Test-DbaConnection {
)
process {
foreach ($instance in $SqlInstance) {
# Clear loop variables assigned after connection test - https://github.com/dataplat/dbatools/issues/9066
$authType = $null
$tcpport = $null
$authscheme = $null

# Get local environment
Write-Message -Level Verbose -Message "Getting local environment information"
$localInfo = [PSCustomObject]@{
Expand Down

0 comments on commit 59e3476

Please sign in to comment.