Fix "Error parsing the configuration file" when using -c and cli
Change-Id: I1703ce61af594b1d231d2a5b00b442c9b94afcca
This commit is contained in:
parent
063eafebd8
commit
4c5472351a
@ -198,11 +198,11 @@ class KBConfig(object):
|
||||
|
||||
def get_credentials(self):
|
||||
# Retrieve the credentials
|
||||
self.cred_tested = credentials.Credentials(openrc_file=CONF.tested_rc,
|
||||
self.cred_tested = credentials.Credentials(openrc=CONF.tested_rc,
|
||||
pwd=CONF.tested_passwd,
|
||||
no_env=CONF.no_env)
|
||||
if CONF.testing_rc:
|
||||
self.cred_testing = credentials.Credentials(openrc_file=CONF.testing_rc,
|
||||
self.cred_testing = credentials.Credentials(openrc=CONF.testing_rc,
|
||||
pwd=CONF.testing_passwd,
|
||||
no_env=CONF.no_env)
|
||||
else:
|
||||
|
@ -990,7 +990,7 @@ def main():
|
||||
kb_config = KBConfig()
|
||||
kb_config.init_with_cli()
|
||||
except TypeError:
|
||||
LOG.error('Error parsing the configuration file')
|
||||
LOG.exception('Error parsing the configuration file')
|
||||
sys.exit(1)
|
||||
|
||||
# The KloudBuster class is just a wrapper class
|
||||
|
Loading…
x
Reference in New Issue
Block a user