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:
commit
be89cc1d44
@ -72,6 +72,7 @@ DEFAULT = {
|
|||||||
'openqa': None,
|
'openqa': None,
|
||||||
'lock': 'SUSE:%(project)s:Staging',
|
'lock': 'SUSE:%(project)s:Staging',
|
||||||
'lock-ns': 'SUSE',
|
'lock-ns': 'SUSE',
|
||||||
|
'remote-config': False,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,6 +149,9 @@ class Config(object):
|
|||||||
|
|
||||||
def apply_remote(self, api):
|
def apply_remote(self, api):
|
||||||
"""Fetch remote config and re-process (defaults, remote, .oscrc)."""
|
"""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')
|
config = api.load_file_content(api.cstaging, 'dashboard', 'config')
|
||||||
if config:
|
if config:
|
||||||
cp = ConfigParser()
|
cp = ConfigParser()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user