Skip to content

Commit

Permalink
Updated delete condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaushal Vora committed Jul 30, 2024
1 parent cc02bd4 commit 626e68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/nopo11y-operator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def generate_dashboard_alerts(spec, namespace, old, new, **kwargs):
return

deleted_svc_list = set(old_spec.keys()) - set(new_spec.keys())
if delete_service_nopo11y:
if deleted_svc_list:
delete_service_nopo11y(deleted_svc_list)

environment = Environment(loader=FileSystemLoader("templates/"))
Expand Down

0 comments on commit 626e68d

Please sign in to comment.