Skip to content

Commit e2a40c0

Browse files
committed
Comparing names not types
1 parent e2a8e97 commit e2a40c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/Send-DBOMailMessage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function Send-DBOMailMessage {
9898
if ($null -eq $PSBoundParameters['from']) {
9999
Stop-PSFFunction -Message "No sender email address specified, exiting" -EnableException $true
100100
}
101-
if ($InputObject -and $InputObject -isnot [DBOpsDeploymentStatus]) {
101+
if ($InputObject -and $InputObject.GetType().FullName -ne 'DBOpsDeploymentStatus') {
102102
Stop-PSFFunction -Message "Wrong object in the pipeline: $($InputObject.GetType().FullName). Usable only with output from the deployment commands." -EnableException $true
103103
}
104104
#Get template from the parameter or read it from the default path

0 commit comments

Comments
 (0)