Merge "Ignore 'last_updated' for auto-generated pages"

This commit is contained in:
Zuul 2020-05-27 13:44:05 +00:00 committed by Gerrit Code Review
commit 67e29f996b
1 changed files with 7 additions and 3 deletions

View File

@ -84,9 +84,13 @@ def _get_last_updated(app, pagename):
'[openstackdocstheme] Last updated for %s is %s',
pagename, last_updated)
return last_updated
LOG.info(
'[openstackdocstheme] could not determine last_updated for %r',
pagename)
if pagename not in ('genindex', 'search'):
LOG.info(
'[openstackdocstheme] could not determine last_updated for %r',
pagename,
)
return _default_last_updated