diff options
Diffstat (limited to 'gluster/swift/common/middleware/gswauth/bin/gswauth-delete-account')
-rwxr-xr-x | gluster/swift/common/middleware/gswauth/bin/gswauth-delete-account | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gluster/swift/common/middleware/gswauth/bin/gswauth-delete-account b/gluster/swift/common/middleware/gswauth/bin/gswauth-delete-account index be8ace8..b1440f4 100755 --- a/gluster/swift/common/middleware/gswauth/bin/gswauth-delete-account +++ b/gluster/swift/common/middleware/gswauth/bin/gswauth-delete-account @@ -30,16 +30,20 @@ if __name__ == '__main__': default='http://127.0.0.1:8080/auth/', help='The URL to the auth ' 'subsystem (default: http://127.0.0.1:8080/auth/') parser.add_option('-U', '--admin-user', dest='admin_user', - default='.super_admin', help='The user with admin rights to add users ' + default='.super_admin', + help='The user with admin rights to delete accounts ' '(default: .super_admin).') parser.add_option('-K', '--admin-key', dest='admin_key', - help='The key for the user with admin rights to add users.') + help='The key for the user with admin rights to delete accounts ' + 'is required.') args = argv[1:] if not args: args.append('-h') (options, args) = parser.parse_args(args) if len(args) != 1: parser.parse_args(['-h']) + if options.admin_key is None: + parser.parse_args(['-h']) account = args[0] parsed = urlparse(options.admin_url) if parsed.scheme not in ('http', 'https'): |