Merge pull request #878 from jberry-suse/ibs-skip-remote-config

conf: provide remote-config option and default to false for SLE.
This commit is contained in:
Jimmy Berry 2017-05-03 19:38:21 -05:00 committed by GitHub
commit be89cc1d44

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