Skip to content

Commit

Permalink
chore: fix a lint issue in e2e test code (#6543)
Browse files Browse the repository at this point in the history
Fix a lint issue in e2e test code reported by the recent
flake8-comprehensions release
  • Loading branch information
hanyucui authored Apr 13, 2023
1 parent 468b689 commit fecb5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e_tests/tests/cluster/test_rbac.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def test_rbac_list_roles() -> None:
for all_role in all_roles:
exluded_role = [r for r in exluded_global_roles if r["roleId"] == all_role["roleId"]]
has_global_role = any(
[p for p in all_role["permissions"] if not p["scopeTypeMask"]["workspace"]]
p for p in all_role["permissions"] if not p["scopeTypeMask"]["workspace"]
)
if len(exluded_role) == 0:
# Didn't find our role in exluded role. Needs to have a global only permission.
Expand Down

0 comments on commit fecb5f8

Please sign in to comment.