conf: provide remote-config option and default to false for SLE.

This commit is contained in:
Jimmy Berry
2017-05-03 19:12:09 -05:00
parent c921420a1f
commit 17e0089d5a
+4
View File
@@ -72,6 +72,7 @@ DEFAULT = {
'openqa': None,
'lock': 'SUSE:%(project)s:Staging',
'lock-ns': 'SUSE',
'remote-config': False,
},
}
@@ -148,6 +149,9 @@ class Config(object):
def apply_remote(self, api):
"""Fetch remote config and re-process (defaults, remote, .oscrc)."""
if not conf.config[self.project].get('remote-config', True):
return
config = api.load_file_content(api.cstaging, 'dashboard', 'config')
if config:
cp = ConfigParser()