Properly register password from prompt
Whenever the password field is missing from the conf, gertty prompts the user to enter it but hapilly discard it to a local variable. Set the config password field instead. Change-Id: Idf6ea2edd9396e4e635955519af6739106fbfe3c
This commit is contained in:
parent
47de985ba7
commit
993bf7b204
|
@ -37,7 +37,7 @@ class Config(object):
|
|||
self.url = self.config.get(server, 'url')
|
||||
self.username = self.config.get(server, 'username')
|
||||
if not self.config.has_option(server, 'password'):
|
||||
password = getpass.getpass("Password for %s (%s): "
|
||||
self.password = getpass.getpass("Password for %s (%s): "
|
||||
% (self.url, self.username))
|
||||
else:
|
||||
self.password = self.config.get(server, 'password')
|
||||
|
|
Loading…
Reference in New Issue