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:
Mehdi Abaakouk 2018-09-14 16:13:36 +02:00
parent 08fd6ef388
commit 42f6f68eb9
1 changed files with 0 additions and 2 deletions

View File

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