From 4b12de04842bff28cdf0da1c90a76a63836c2575 Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Sun, 28 May 2017 17:19:20 +0200 Subject: Revert "add option to change default username and realm" --- glances/main.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'glances/main.py') diff --git a/glances/main.py b/glances/main.py index 3ecd1c74..141addc3 100644 --- a/glances/main.py +++ b/glances/main.py @@ -212,10 +212,6 @@ Examples of use: help='define a client/server username') parser.add_argument('--password', action='store_true', default=False, dest='password_prompt', help='define a client/server password') - parser.add_argument('--username-default', default=self.username, dest='username_default', - help='this option will be ignored if --username is specified') - parser.add_argument('--realm', default='glances', dest='realm', - help='used by Glances in web server mode when authentication is enabled') parser.add_argument('--snmp-community', default='public', dest='snmp_community', help='SNMP community') parser.add_argument('--snmp-port', default=161, type=int, @@ -316,7 +312,7 @@ Examples of use: description='Enter the Glances server username: ') else: # Default user name is 'glances' - args.username = args.username_default + args.username = self.username if args.password_prompt: # Interactive or file password -- cgit v1.2.3