PR#375 raise error on non-existing profile

Merges #375
https://pagure.io/koji/pull-request/375
This commit is contained in:
Mike McLean 2017-04-21 16:34:44 -04:00
commit 16b2aef84b

View file

@ -1685,8 +1685,7 @@ def read_config(profile_name, user_config=None):
# Check if the specified profile had a config specified
if configs and not got_conf:
sys.stderr.write("Warning: no configuration for profile name: %s\n" % profile_name)
sys.stderr.flush()
raise ConfigurationError("no configuration for profile name: %s" % profile_name)
# special handling for cert defaults
cert_defaults = {