diff --git a/github_discovery.py b/github_discovery.py index 995a650..49f969d 100644 --- a/github_discovery.py +++ b/github_discovery.py @@ -659,13 +659,16 @@ def process_repo(**component): pass # Update alerts_prod_slack_channel and alerts_non_prod_slack_channel + log.info(f'{c_name} Alerts severity labels: {alert_severity_label_envs}') if 'preprod' in alert_severity_label_envs: alert_severity_label = alert_severity_label_envs["preprod"]["alert_severity_label"] channel = find_channel_by_severity_label(alert_severity_label) + log.info(f'{c_name} Alerts channel for preprod {alert_severity_label}: {channel}') data.update({'alerts_nonprod_slack_channel': channel}) if 'prod' in alert_severity_label_envs: alert_severity_label = alert_severity_label_envs["prod"]["alert_severity_label"] channel = find_channel_by_severity_label(alert_severity_label) + log.info(f'{c_name} Alerts channel for prod {alert_severity_label}: {channel}') data.update({'alerts_prod_slack_channel': channel}) environments = []