Skip to content

Commit

Permalink
Merge pull request #584 from martinhesko/affected_by_fix
Browse files Browse the repository at this point in the history
Added brackets around the policy name
  • Loading branch information
trepel authored Nov 12, 2024
2 parents 87bef82 + a69459a commit a0fc976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testsuite/gateway/gateway_api/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def is_affected_by(self, policy: Policy) -> bool:
f"kuadrant.io/{policy.kind(lowercase=False)}Affected",
"True",
"Accepted",
f"Object affected by {policy.kind(lowercase=False)} {policy.namespace()}/{policy.name()}",
f"Object affected by {policy.kind(lowercase=False)} [{policy.namespace()}/{policy.name()}]",
):
return True
return False
Expand Down
2 changes: 1 addition & 1 deletion testsuite/gateway/gateway_api/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def is_affected_by(self, policy: Policy):
f"kuadrant.io/{policy.kind(lowercase=False)}Affected",
"True",
"Accepted",
f"Object affected by {policy.kind(lowercase=False)} {policy.namespace()}/{policy.name()}",
f"Object affected by {policy.kind(lowercase=False)} [{policy.namespace()}/{policy.name()}]",
):
return True
return False
Expand Down

0 comments on commit a0fc976

Please sign in to comment.