mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-11-04 06:15:28 +08:00
Fix for optional arguments in arg=value format. TypeError: 'NoneType' object is not iterable fixed.
This commit is contained in:
@@ -260,6 +260,7 @@ def submit_module_build(scm_url, branch, server, id_provider, pyrpkg, verify=Tru
|
||||
|
||||
logging.info("Submitting module build %s", scm_url)
|
||||
body = {'scmurl': scm_url, 'branch': branch}
|
||||
optional = optional if optional else []
|
||||
try:
|
||||
optional_dict = {y[0]: y[1] for y in [x.split("=", 1) for x in optional]}
|
||||
except IndexError:
|
||||
|
||||
Reference in New Issue
Block a user