Skip to content

Commit

Permalink
Pass Login values to Copy-DbaLogin
Browse files Browse the repository at this point in the history
Call to `Copy-DbaLogin` simply didn't pass the values.

Fixes #5119
  • Loading branch information
wsmelton authored Feb 25, 2019
1 parent e36b397 commit c7a97b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/Sync-DbaAvailabilityGroup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function Sync-DbaAvailabilityGroup {
if ($Exclude -notcontains "Logins") {
if ($PSCmdlet.ShouldProcess("Syncing logins from $primaryserver to $secondaryservers")) {
Write-ProgressHelper -Activity $activity -StepNumber ($stepCounter++) -Message "Syncing logins"
Copy-DbaLogin -Source $server -Destination $secondaries -ExcludeLogin $ExcludeLogin -Force:$Force
Copy-DbaLogin -Source $server -Destination $secondaries -Login $Login -ExcludeLogin $ExcludeLogin -Force:$Force
}
}

Expand Down

0 comments on commit c7a97b1

Please sign in to comment.