Add operations-guide to redirect ignore list

The openstack/operations-guide repo is not cycle based and uses the
publish-openstack-tox-docs-direct job. This adds the repo to the list to
be ignored when generating the .htaccess file of redirects so it does
not get sent to /latest.

Change-Id: I41f1c88a823c4c6873ae2a179ec9df6d52501d37
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2018-09-07 14:16:02 -05:00
parent db48465a9e
commit 68b8532eeb

View File

@ -350,6 +350,7 @@ _IGNORED_REPOS = [
'openstack/releases', 'openstack/releases',
'openstack-infra/releasestatus', 'openstack-infra/releasestatus',
'openstack/contributor-guide', 'openstack/contributor-guide',
'openstack/operations-guide',
] ]
# List of infra repos that publish to the normal location (/REPO/) and # List of infra repos that publish to the normal location (/REPO/) and
@ -417,6 +418,8 @@ def _get_official_repos():
base = name.rsplit('/')[-1] base = name.rsplit('/')[-1]
if name in seen_repos: if name in seen_repos:
continue continue
if name in _IGNORED_REPOS:
continue
regular_repos.append({ regular_repos.append({
'name': name, 'name': name,
'base': base, 'base': base,