Skip to content

Commit db177f4

Browse files
committed
fix skip policy alert
1 parent 0bf692a commit db177f4

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

cloud_governance/main/environment_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def __init__(self):
283283
EnvironmentVariables.get_env('POLICIES_TO_ALERT', '[]'))
284284
self._environment_variables_dict['ADMIN_MAIL_LIST'] = EnvironmentVariables.get_env('ADMIN_MAIL_LIST', '')
285285
self._environment_variables_dict['SKIP_POLICIES_ALERT'] = literal_eval(
286-
EnvironmentVariables.get_env('SKIP_POLICIES_ALERT', "['']"))
286+
EnvironmentVariables.get_env('SKIP_POLICIES_ALERT', '[]'))
287287
if self._environment_variables_dict.get('policy') in ['send_aggregated_alerts', 'cloudability_cost_reports']:
288288
self._environment_variables_dict['COMMON_POLICIES'] = True
289289
# CRO -- Cloud Resource Orch

jenkins/tenant/aws/ecoeng_01/PolicyJenkinsfileDaily

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pipeline {
4141
// By default, all policies are running in dry_run="yes" mode and the whole list can be found in run_policies.py
4242
// POLICIES_IN_ACTION: Policies that run in the dry_run="no" mode
4343
POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles", "zombie_cluster_resource"]'
44-
SKIP_POLICIES_ALERT = '["unused_access_key"]'
44+
SKIP_POLICIES_ALERT = ["unused_access_key"]
4545
}
4646
stages {
4747
stage('Checkout') { // Checkout (git clone ...) the projects repository
@@ -80,7 +80,7 @@ pipeline {
8080
string(credentialsId: "${account}-aws-secret-key-id", variable: 'secret_key'),
8181
string(credentialsId: "${account}-s3-bucket", variable: 's3_bucket')]) {
8282
if (account == 'industry-partners') {
83-
env.SKIP_POLICIES_ALERT = '[]'
83+
env.SKIP_POLICIES_ALERT = []
8484
}
8585
env.account_name = "${account}"
8686
env.ADMIN_MAIL_LIST = "${accounts_list[account]}"

jenkins/tenant/aws/ecoeng_02/PolicyJenkinsfileDaily

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pipeline {
2929
// By default, all policies are running in dry_run="yes" mode and the whole list can be found in run_policies.py
3030
// POLICIES_IN_ACTION: Policies that run in the dry_run="no" mode
3131
POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles", "zombie_cluster_resource"]'
32-
SKIP_POLICIES_ALERT = '["unused_access_key"]'
32+
SKIP_POLICIES_ALERT = ["unused_access_key"]
3333
}
3434
stages {
3535
stage('Checkout') { // Checkout (git clone ...) the projects repository

jenkins/tenant/aws/ecoeng_03/PolicyJenkinsfileDaily

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pipeline {
2626
// By default, all policies are running in dry_run="yes" mode and the whole list can be found in run_policies.py
2727
// POLICIES_IN_ACTION: Policies that run in the dry_run="no" mode
2828
POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles", "zombie_cluster_resource"]'
29-
SKIP_POLICIES_ALERT = '["unused_access_key"]'
29+
SKIP_POLICIES_ALERT = ["unused_access_key"]
3030
}
3131
stages {
3232
stage('Checkout') { // Checkout (git clone ...) the projects repository

0 commit comments

Comments
 (0)