Skip to content

Commit

Permalink
cli script fixes were broken
Browse files Browse the repository at this point in the history
  • Loading branch information
chadfurman committed Oct 2, 2024
1 parent 826ef37 commit 1bff0a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions management/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def setup_key_auth(mgmt_uri):
{cli} user password [email protected] [password]
{cli} user remove [email protected]
{cli} user make-admin [email protected]
{cli} user quota user@domain [new-quota]
{cli} user quota user@domain [new-quota] (get or set user quota)
{cli} user remove-admin [email protected]
{cli} user admins (lists admins)
{cli} user mfa show [email protected] (shows MFA devices for user, if any)
Expand Down Expand Up @@ -123,7 +123,7 @@ def setup_key_auth(mgmt_uri):
print(user['email'])

elif sys.argv[1] == "user" and sys.argv[2] == "quota" and len(sys.argv) == 4:
# Set a user's quota
# Get a user's quota
print(mgmt("/mail/users/quota?text=1&email=%s" % sys.argv[3]))

elif sys.argv[1] == "user" and sys.argv[2] == "quota" and len(sys.argv) == 5:
Expand Down Expand Up @@ -154,4 +154,3 @@ def setup_key_auth(mgmt_uri):
else:
print("Invalid command-line arguments.")
sys.exit(1)

0 comments on commit 1bff0a4

Please sign in to comment.