fix(logging): add default resource id when no resources (#2177)

This commit is contained in:
Sergio Garcia
2023-04-10 08:02:40 +02:00
committed by GitHub
parent 4f39dd0f73
commit 8d1356a085
9 changed files with 9 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ class logging_log_metric_filter_and_alert_for_audit_configuration_changes_enable
findings = []
report = Check_Report_GCP(self.metadata())
report.project_id = logging_client.project_id
report.resource_id = ""
report.resource_id = logging_client.project_id
report.resource_name = ""
report.location = logging_client.region
report.status = "FAIL"

View File

@@ -10,7 +10,7 @@ class logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled(
findings = []
report = Check_Report_GCP(self.metadata())
report.project_id = logging_client.project_id
report.resource_id = ""
report.resource_id = logging_client.project_id
report.resource_name = ""
report.location = logging_client.region
report.status = "FAIL"

View File

@@ -10,7 +10,7 @@ class logging_log_metric_filter_and_alert_for_custom_role_changes_enabled(Check)
findings = []
report = Check_Report_GCP(self.metadata())
report.project_id = logging_client.project_id
report.resource_id = ""
report.resource_id = logging_client.project_id
report.resource_name = ""
report.location = logging_client.region
report.status = "FAIL"

View File

@@ -10,7 +10,7 @@ class logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled(
findings = []
report = Check_Report_GCP(self.metadata())
report.project_id = logging_client.project_id
report.resource_id = ""
report.resource_id = logging_client.project_id
report.resource_name = ""
report.location = logging_client.region
report.status = "FAIL"

View File

@@ -12,7 +12,7 @@ class logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes
findings = []
report = Check_Report_GCP(self.metadata())
report.project_id = logging_client.project_id
report.resource_id = ""
report.resource_id = logging_client.project_id
report.resource_name = ""
report.location = logging_client.region
report.status = "FAIL"

View File

@@ -10,7 +10,7 @@ class logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled(
findings = []
report = Check_Report_GCP(self.metadata())
report.project_id = logging_client.project_id
report.resource_id = ""
report.resource_id = logging_client.project_id
report.resource_name = ""
report.location = logging_client.region
report.status = "FAIL"

View File

@@ -10,7 +10,7 @@ class logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled(Check)
findings = []
report = Check_Report_GCP(self.metadata())
report.project_id = logging_client.project_id
report.resource_id = ""
report.resource_id = logging_client.project_id
report.resource_name = ""
report.location = logging_client.region
report.status = "FAIL"

View File

@@ -10,7 +10,7 @@ class logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled(
findings = []
report = Check_Report_GCP(self.metadata())
report.project_id = logging_client.project_id
report.resource_id = ""
report.resource_id = logging_client.project_id
report.resource_name = ""
report.location = logging_client.region
report.status = "FAIL"

View File

@@ -8,7 +8,7 @@ class logging_sink_created(Check):
if not logging_client.sinks:
report = Check_Report_GCP(self.metadata())
report.project_id = logging_client.project_id
report.resource_id = ""
report.resource_id = logging_client.project_id
report.resource_name = ""
report.location = logging_client.region
report.status = "FAIL"