PR#375 raise error on non-existing profile
Merges #375 https://pagure.io/koji/pull-request/375
This commit is contained in:
commit
16b2aef84b
1 changed files with 1 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue