Skip to content

Commit

Permalink
tests(agent): adopt RFL disable_anonymous() method
Browse files Browse the repository at this point in the history
  • Loading branch information
rezib committed Feb 3, 2025
1 parent df6256d commit 6c89ef1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions slurmweb/tests/lib/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ def setup_client(
)
)
if not anonymous_enabled:
for role in self.app.policy.loader.roles.copy():
if role.name == ANONYMOUS_ROLE:
self.app.policy.loader.roles.remove(role)
self.app.policy.disable_anonymous()

conf.close()
key.close()
Expand Down

0 comments on commit 6c89ef1

Please sign in to comment.