You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: functions/Send-DBOMailMessage.ps1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ function Send-DBOMailMessage {
98
98
if ($null-eq$PSBoundParameters['from']) {
99
99
Stop-PSFFunction-Message "No sender email address specified, exiting"-EnableException $true
100
100
}
101
-
if ($InputObject-and$InputObject-isnot [DBOpsDeploymentStatus]) {
101
+
if ($InputObject-and$InputObject.GetType().FullName -ne'DBOpsDeploymentStatus') {
102
102
Stop-PSFFunction-Message "Wrong object in the pipeline: $($InputObject.GetType().FullName). Usable only with output from the deployment commands."-EnableException $true
103
103
}
104
104
#Get template from the parameter or read it from the default path
0 commit comments