Only start the build manager if building is enabled

This commit is contained in:
Joseph Schorr 2014-11-26 11:28:29 -05:00
parent 9d675b51ed
commit d91829dc3c

View file

@ -1,5 +1,6 @@
import logging
import os
import features
from app import app, userfiles as user_files, build_logs, dockerfile_build_queue
@ -15,6 +16,10 @@ BUILD_MANAGERS = {
}
def run_build_manager():
if not features.BUILD_SUPPORT:
LOGGER.debug('Building is disabled. Please enable the feature flag')
return
build_manager_config = app.config.get('BUILD_MANAGER')
if build_manager_config is None:
return