Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-Robusta committed Feb 2, 2025
1 parent e0461c3 commit 818489d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/robusta/core/discovery/top_service_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ def guess_workload_from_labels(cls, labels: Dict[Any, Any] = None) -> Optional[T
if not label in labels:
continue
resource_type = label.capitalize() if label != "job_name" else "Job"
TopLevelResource(name=labels[label], namespace=namespace, resource_type=resource_type)
return labels[label]
return TopLevelResource(name=labels[label], namespace=namespace, resource_type=resource_type)
return None

@classmethod
Expand Down

0 comments on commit 818489d

Please sign in to comment.