strict per item in config_files
This commit is contained in:
parent
153ac4058d
commit
b2b8d5f9cc
8 changed files with 141 additions and 86 deletions
|
|
@ -5945,7 +5945,7 @@ def handle_image_build(options, session, args):
|
|||
|
||||
if task_options.config:
|
||||
section = 'image-build'
|
||||
config = koji.read_config_files(task_options.config, strict=True)
|
||||
config = koji.read_config_files([(task_options.config, True)])
|
||||
if not config.has_section(section):
|
||||
parser.error(_("single section called [%s] is required" % section))
|
||||
# pluck out the positional arguments first
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue