From 6c7d46a9e3caa80e66beec5af138be1ae23c634d Mon Sep 17 00:00:00 2001 From: Joel Diaz Date: Tue, 19 Sep 2017 09:32:59 -0400 Subject: [PATCH] add default role of 'prometheus_alerts' for alerts (#29111) Currently, MIQ only supports an alert type of 'prometheus', so rather than have the caller of manageiq_provider pass this info, just set it as the default. --- .../modules/remote_management/manageiq/manageiq_provider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/remote_management/manageiq/manageiq_provider.py b/lib/ansible/modules/remote_management/manageiq/manageiq_provider.py index ca336b31f7..cbb7d92cb3 100644 --- a/lib/ansible/modules/remote_management/manageiq/manageiq_provider.py +++ b/lib/ansible/modules/remote_management/manageiq/manageiq_provider.py @@ -336,6 +336,7 @@ def supported_providers(): authtype='bearer', default_role='default', metrics_role='prometheus', + alerts_role='prometheus_alerts', ), Amazon=dict( class_name='ManageIQ::Providers::Amazon::CloudManager',