Skip to content

Commit

Permalink
Fix ["result"] usage in metric_service
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaveMyYard committed Mar 4, 2024
1 parent f38e33c commit 50147bd
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ async def load_pods(self, object: K8sObjectData, period: timedelta) -> list[PodD
}}[{period_literal}]
"""
)
replicasets = replicasets["result"]
pod_owners = [replicaset["metric"]["replicaset"] for replicaset in replicasets]
pod_owner_kind = "ReplicaSet"

Expand All @@ -246,7 +245,6 @@ async def load_pods(self, object: K8sObjectData, period: timedelta) -> list[PodD
)
"""
)
related_pods_result = related_pods_result["result"]

if related_pods_result == []:
return []
Expand All @@ -267,7 +265,6 @@ async def load_pods(self, object: K8sObjectData, period: timedelta) -> list[PodD
}} == 1
"""
)
pods_status_result = pods_status_result["result"]
current_pods_set |= {pod["metric"]["pod"] for pod in pods_status_result}
del pods_status_result

Expand Down

0 comments on commit 50147bd

Please # to comment.