mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 11:29:43 +08:00
Fix typo bug in our existence check.
This gave a traceback every time before. We need a trailing comma there in order to make that an `iterable`, otherwise our `in` check doesn't make any sense.
This commit is contained in:
@@ -139,7 +139,7 @@ class ModuleBuildAPI(MethodView):
|
||||
log.debug('Checking whether module build already exist.')
|
||||
# TODO: make this configurable, we might want to allow
|
||||
# resubmitting any stuck build on DEV no matter the state
|
||||
if module.state not in (models.BUILD_STATES['failed']):
|
||||
if module.state not in (models.BUILD_STATES['failed'],):
|
||||
log.error('Module (state=%s) already exists. '
|
||||
'Only new or failed builds are allowed.'
|
||||
% module.state)
|
||||
|
||||
Reference in New Issue
Block a user