Fix logic when selecting configuration file
if the configuration have been found in /etc/ceilometer we currently raise a RuntimeError. This change fixes that. Change-Id: I121bd9c387b677c1001abeddffc48f9ad3494e5c
This commit is contained in:
parent
08fd6ef388
commit
42f6f68eb9
@ -59,8 +59,6 @@ class ConfigManagerBase(object):
|
||||
"Using default config.")
|
||||
cfg_loc = pkg_resources.resource_filename(
|
||||
__name__, 'pipeline/data/' + cfg_file)
|
||||
else:
|
||||
raise RuntimeError("No configuration file can be found")
|
||||
with open(cfg_loc) as fap:
|
||||
conf = yaml.safe_load(fap)
|
||||
LOG.info("Config file: %s", conf)
|
||||
|
Loading…
x
Reference in New Issue
Block a user