Merge branch 'master' into normalise_plugin

This commit is contained in:
michael-chambers 2023-01-03 16:03:56 -08:00
commit 71fb076b67

View file

@ -18,7 +18,6 @@ def get_info(current_cluster):
for cluster_name, id in env_data.items():
LOG.debug("Examining %s cluster", cluster_name)
if id == current_cluster:
LOG.debug("cluster identified for %s", id)
return customer, environment, cluster_name
class NormaliseAlert(PluginBase):
@ -32,7 +31,6 @@ class NormaliseAlert(PluginBase):
if t.startswith("cluster_id"):
x, cluster_info = t.split('=', 1)
env = cluster_info.split('/')
LOG.debug("Cluster information is %s", env)
cluster_id = env[2]
customer, environment, cluster_name = get_info(cluster_id)
alert.attributes['client'] = customer