ansible-collections / community.digitalocean

This Ansible collection contains modules for assisting in the automation of the DigitalOcean cloud.
https://galaxy.ansible.com/community/digitalocean/
GNU General Public License v3.0
140 stars 57 forks source link

``digital_ocean_monitoring_alerts`` module docs and alerts improvements #372

Open elcfd opened 5 months ago

elcfd commented 5 months ago
SUMMARY
  1. Document how to add a monitoring alert to all entities
  2. Improvements to alerts object - cope with case where slack or email keys are not present
ISSUE TYPE
COMPONENT NAME

digital_ocean_monitoring_alerts

ADDITIONAL INFORMATION

The documentation is not clear that you need to pass both the slack and email keys in the alerts object. If you dont pass in both keys then the get_alert() comparison fails. I think this needs to be handled better.