Skip to content

Commit

Permalink
fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 committed Nov 27, 2024
1 parent 364f8cd commit 8d41cf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/gcp/fix_plugin_gcp/collector.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
from concurrent.futures import ThreadPoolExecutor, as_completed
from concurrent.futures import ThreadPoolExecutor
from datetime import datetime, timezone
from typing import Tuple, Type, List, Any, Optional, cast, Dict
from typing import Type, List, Any, Optional, cast

from fix_plugin_gcp.config import GcpConfig
from fix_plugin_gcp.gcp_client import GcpApiSpec
Expand Down
2 changes: 2 additions & 0 deletions plugins/gcp/fix_plugin_gcp/resources/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def update_resource_metrics(
query: GcpMonitoringQuery,
metric: GcpMonitoringMetricData,
) -> None:
if len(metric.metric_values) == 0:
return
normalizer = query.normalization
for metric_value, maybe_stat_name in normalizer.compute_stats(metric.metric_values):
try:
Expand Down

0 comments on commit 8d41cf8

Please sign in to comment.