Fix "Error parsing the configuration file" when using -c and cli

Change-Id: I1703ce61af594b1d231d2a5b00b442c9b94afcca
This commit is contained in:
ahothan 2017-11-22 09:13:06 -08:00
parent 063eafebd8
commit 4c5472351a
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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