From 1bff0a458f31a9901b4433f42e4df7d657ea3a61 Mon Sep 17 00:00:00 2001 From: Chad Furman Date: Tue, 1 Oct 2024 19:20:19 -0400 Subject: [PATCH] cli script fixes were broken --- management/cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/management/cli.py b/management/cli.py index 10e8439dd..f01c8062e 100755 --- a/management/cli.py +++ b/management/cli.py @@ -65,7 +65,7 @@ def setup_key_auth(mgmt_uri): {cli} user password user@domain.com [password] {cli} user remove user@domain.com {cli} user make-admin user@domain.com - {cli} user quota user@domain [new-quota] + {cli} user quota user@domain [new-quota] (get or set user quota) {cli} user remove-admin user@domain.com {cli} user admins (lists admins) {cli} user mfa show user@domain.com (shows MFA devices for user, if any) @@ -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: @@ -154,4 +154,3 @@ def setup_key_auth(mgmt_uri): else: print("Invalid command-line arguments.") sys.exit(1) -