Skip to content

Commit

Permalink
fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
Skybound1 committed Apr 25, 2024
1 parent 570edcc commit 5a08913
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion icekube/models/policyrule.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,8 @@ def affected_resource_query(
if not any(fnmatch("namespaces", x) for x in self.resourceNames):
return

yield (tags, generate_query({**namespace_filter, "name": [namespace]}))
if tags:
yield (
tags,
generate_query({**namespace_filter, "name": [namespace]}),
)

0 comments on commit 5a08913

Please sign in to comment.