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:
Ralph Bean
2016-10-27 15:59:41 -04:00
parent 8e6ce2ef6f
commit bb317a9323

View File

@@ -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)