diff --git a/conf/config.py b/conf/config.py index a4c691ef..b8ff8a5a 100644 --- a/conf/config.py +++ b/conf/config.py @@ -36,6 +36,7 @@ class BaseConfiguration(object): PDC_INSECURE = True PDC_DEVELOP = True SCMURLS = ["git://pkgs.stg.fedoraproject.org/modules/"] + SUBMITTING_YAML = False # How often should we resort to polling, in seconds # Set to zero to disable polling diff --git a/module_build_service/views.py b/module_build_service/views.py index 8847404f..372dc8a3 100644 --- a/module_build_service/views.py +++ b/module_build_service/views.py @@ -98,7 +98,7 @@ class ModuleBuildAPI(MethodView): raise Unauthorized("%s is not in any of %r, only %r" % ( username, conf.allowed_groups, groups)) - if "multipart/form-data" in request.headers.get("Content-Type"): + if "multipart/form-data" in request.headers.get("Content-Type") and conf.submitting_yaml: module = self.post_file(username) else: module = self.post_scm(username)