Skip to content

Commit

Permalink
fixes #5658 (#5661)
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee authored May 31, 2019
1 parent 03356ce commit e0bf25d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions functions/Stop-DbaProcess.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ function Stop-DbaProcess {
process {
if (Test-FunctionInterrupt) { return }

if (!$InputObject) {
$InputObject = Get-DbaProcess @PSBoundParameters
if (-not $InputObject) {
$bound = $PSBoundParameters
$null = $bound.Remove("WhatIf")
$null = $bound.Remove("Confirm")
$InputObject = Get-DbaProcess @bound
}

foreach ($session in $InputObject) {
Expand Down

0 comments on commit e0bf25d

Please sign in to comment.