1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-24 22:06:14 +01:00

Fix undefined variable in conf.apply_option_types()

This commit is contained in:
Daniel Mach 2022-08-29 09:50:51 +02:00
parent a5b8729f2f
commit b55384a914

View File

@ -197,7 +197,7 @@ api_host_options = ['user', 'pass', 'passx', 'aliases', 'http_headers', 'realnam
'downloadurl', 'sshkey']
def apply_option_types(config):
def apply_option_types(config, conffile=""):
"""
Return a copy of `config` dictionary with values converted to their expected types
according to the enumerated option types (boolean_opts, integer_opts).
@ -759,7 +759,7 @@ def get_config(override_conffile=None,
config = dict(cp.items('general', raw=1))
config['conffile'] = conffile
config = apply_option_types(config)
config = apply_option_types(config, conffile)
config['packagecachedir'] = os.path.expanduser(config['packagecachedir'])
config['exclude_glob'] = config['exclude_glob'].split()