Skip to content

Commit

Permalink
Update public/Restore-DbaDatabase.ps1
Browse files Browse the repository at this point in the history
Co-authored-by: Shawn Melton <[email protected]>
  • Loading branch information
0x7FFFFFFFFFFFFFFF and wsmelton authored Feb 2, 2024
1 parent 8a88b7a commit f187884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Restore-DbaDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ function Restore-DbaDatabase {
}

if (@("Restoring", "Normal, Standby") -notcontains $RestoreInstance.Databases[$Database].Status) {
Write-Message -Message "$Database on $RestoreInstance is not in Restoring or Standby State" -Level Warning
Write-Message -Message "$Database on $RestoreInstance state [$($RestoreInstance.Databases[$Database].Status)] is not a valid state. Valid state is Restoring or Standby" -Level Warning
continue
}
$RestoreComplete = $true
Expand Down

0 comments on commit f187884

Please sign in to comment.