Skip to content

Commit 6c89ef1

Browse files
committed
tests(agent): adopt RFL disable_anonymous() method
1 parent df6256d commit 6c89ef1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

slurmweb/tests/lib/agent.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ def setup_client(
107107
)
108108
)
109109
if not anonymous_enabled:
110-
for role in self.app.policy.loader.roles.copy():
111-
if role.name == ANONYMOUS_ROLE:
112-
self.app.policy.loader.roles.remove(role)
110+
self.app.policy.disable_anonymous()
113111

114112
conf.close()
115113
key.close()

0 commit comments

Comments
 (0)