[www] Update database
Watcher does not have anymore an in-tree api document at https://docs.openstack.org/watcher/latest/api/index.html, remove the setting so that this repo builds again. Update script to handle the foundation-board-repos list to silence warning about refstack. Change-Id: I1e7753f2cb4a370634f1f16d859fe9be137c9421
This commit is contained in:
parent
da06d71409
commit
2a2e0ac9c1
@ -405,6 +405,7 @@ def load_project_data(source_directory,
|
||||
|
||||
_GOVERNANCE_URL = 'http://git.openstack.org/cgit/openstack/governance/plain/reference/projects.yaml' # noqa
|
||||
_GOVERNANCE_SIGS_URL = 'http://git.openstack.org/cgit/openstack/governance/plain/reference/sigs-repos.yaml' # noqa
|
||||
_GOVERNANCE_FOUNDATION_URL = 'http://git.openstack.org/cgit/openstack/governance/plain/reference/foundation-board-repos.yaml' # noqa
|
||||
_IGNORED_REPOS = [
|
||||
'openstack/releases',
|
||||
'openstack-infra/releasestatus',
|
||||
@ -470,24 +471,25 @@ def _get_official_repos():
|
||||
# name:
|
||||
# - repo: name
|
||||
#
|
||||
raw = requests.get(_GOVERNANCE_SIGS_URL)
|
||||
data = yaml.safe_load(raw.text)
|
||||
for sig_name, sig_data in data.items():
|
||||
for repo in sig_data:
|
||||
name = repo['repo']
|
||||
base = name.rsplit('/')[-1]
|
||||
if name in seen_repos:
|
||||
continue
|
||||
if name in _IGNORED_REPOS:
|
||||
continue
|
||||
regular_repos.append({
|
||||
'name': name,
|
||||
'base': base,
|
||||
})
|
||||
seen_repos.add(name)
|
||||
# Treat sig repos as deliverables so they do not trigger
|
||||
# a warning for not appearing to be official.
|
||||
deliverables.append(base)
|
||||
for url in [_GOVERNANCE_SIGS_URL, _GOVERNANCE_FOUNDATION_URL]:
|
||||
raw = requests.get(url)
|
||||
data = yaml.safe_load(raw.text)
|
||||
for sig_name, sig_data in data.items():
|
||||
for repo in sig_data:
|
||||
name = repo['repo']
|
||||
base = name.rsplit('/')[-1]
|
||||
if name in seen_repos:
|
||||
continue
|
||||
if name in _IGNORED_REPOS:
|
||||
continue
|
||||
regular_repos.append({
|
||||
'name': name,
|
||||
'base': base,
|
||||
})
|
||||
seen_repos.add(name)
|
||||
# Treat sig repos as deliverables so they do not trigger
|
||||
# a warning for not appearing to be official.
|
||||
deliverables.append(base)
|
||||
|
||||
return (regular_repos, infra_repos, deliverables)
|
||||
|
||||
|
@ -403,7 +403,6 @@
|
||||
service: Infrastructure Optimization service
|
||||
service_type: resource-optimization
|
||||
type: service
|
||||
has_in_tree_api_docs: true
|
||||
has_install_guide: true
|
||||
has_admin_guide: true
|
||||
has_user_guide: true
|
||||
|
Loading…
Reference in New Issue
Block a user