summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2017-04-13 11:51:55 -0400
committerDoug Hellmann <doug@doughellmann.com>2017-04-13 11:51:55 -0400
commit84a85991339328a188f181385ec4386eb97206dc (patch)
treec92afed2731f036635cac4797246a51a5275a737
parentb097ff17245cdb904476ca2e7e9f73cfcccacea1 (diff)
downloadpbr-84a85991339328a188f181385ec4386eb97206dc.tar.gz
add image.nonlocal_uri to the list of warnings ignored
pbr currently hard-codes the list of warnings that are to be ignored. Many OpenStack projects use remote images to add project "badges" based on tags defined in the governance repository. Ignore the warning caused by using remote images so we can unbreak documentation builds using those badges. Change-Id: If47e3ca6519cc9f70d62cd887707321fe9199f81 Addresses-Bug: #1682467 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-rw-r--r--pbr/builddoc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbr/builddoc.py b/pbr/builddoc.py
index 4f05673..eedbd16 100644
--- a/pbr/builddoc.py
+++ b/pbr/builddoc.py
@@ -134,7 +134,9 @@ class LocalBuildDoc(setup_command.BuildDoc):
if self.sphinx_initialized:
confoverrides['suppress_warnings'] = [
'app.add_directive', 'app.add_role',
- 'app.add_generic_role', 'app.add_node']
+ 'app.add_generic_role', 'app.add_node',
+ 'image.nonlocal_uri',
+ ]
app = application.Sphinx(
self.source_dir, self.config_dir,
self.builder_target_dir, self.doctree_dir,