-
-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy-DbaAgentAlert does not validate that operator exist #4920
Comments
Logic should be added that if the operator does not exists on the destination instance the alert is to be skipped and output object updated as such. This should be done prior to this line, being that if the operator does not exist no other action would be successful. |
@mikepetrak I did some work toward this as well yesterday, haven't been able to test yet so I didn't log a PR yet. Do you want to take a look? alevyinroc@8a8a8da |
Sorry, @alevyinroc , I didn't see that. I scanned your commit and tested it and it looks good to me. Two of the automated tests for my commit failed, so if you log a PR and it passes that sounds good to me. Describe : Copy-DbaAgentAlert Integration Tests Describe : dbatools style |
There is no checking when adding notifications to an alert if the operator exists at destination. This will skip the alert transfer?
The text was updated successfully, but these errors were encountered: