Skip to content

Commit

Permalink
Update deprecated mc admin commands
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrw committed Apr 26, 2023
1 parent 3355870 commit 4b3f2e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minio/minioadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def policy_set(self, policy_name, user=None, group=None):
return self._run(
[
"policy", "attach", self._target, policy_name,
("--user" if user else "--group"), (user or group),
"--user" if user else "--group", user or group,
],
)
raise ValueError("either user or group must be set")
Expand All @@ -159,7 +159,7 @@ def policy_unset(self, policy_name, user=None, group=None):
return self._run(
[
"policy", "detach", self._target, policy_name,
("--user" if user else "--group"), (user or group),
"--user" if user else "--group", user or group,
],
)
raise ValueError("either user or group must be set")
Expand Down

0 comments on commit 4b3f2e8

Please sign in to comment.