Skip to content

Commit

Permalink
Revert "Merge pull request #1 from NeilOrley/NeilOrley-patch-1"
Browse files Browse the repository at this point in the history
This reverts commit 2392d31, reversing
changes made to 69d271e.
  • Loading branch information
NeilOrley committed Feb 10, 2022
1 parent a9da210 commit 9165a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/prometheus/alerta_prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def take_action(self, alert: Alert, action: str, text: str, **kwargs) -> Any:

# if alertmanager is clustered behind a load balancer that mirrors requests we should prefer to create one silence
# rather than many
if ALERTMANAGER_USE_EXTERNALURL_FOR_SILENCES:
if USE_AM_EXTERNALURL_FOR_SILENCES:
base_url = alert.attributes.get('externalUrl', DEFAULT_ALERTMANAGER_API_URL) or ALERTMANAGER_API_URL
else:
base_url = ALERTMANAGER_API_URL or alert.attributes.get('externalUrl', DEFAULT_ALERTMANAGER_API_URL)
Expand Down

0 comments on commit 9165a5e

Please sign in to comment.