summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2017-06-27 17:43:06 -0400
committerDoug Hellmann <doug@doughellmann.com>2017-06-28 10:54:31 -0400
commit23f9d743889a1676ce42c7ef5fef2b09769a332a (patch)
treebfdcbd83aac86328d7dc65aada589140cb9c45cf
parent51cb0c5a8488ff0102fc4993e6bfa79f8b3e5583 (diff)
downloadglance_store-23f9d743889a1676ce42c7ef5fef2b09769a332a.tar.gz
set warning-is-error for documentation build
Change-Id: I285a95b9a2bd9d0f9f02896b44757c582c6d2c56 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-rw-r--r--glance_store/_drivers/cinder.py2
-rw-r--r--glance_store/_drivers/filesystem.py2
-rw-r--r--glance_store/_drivers/sheepdog.py2
-rw-r--r--glance_store/_drivers/swift/store.py2
-rw-r--r--setup.cfg2
5 files changed, 5 insertions, 5 deletions
diff --git a/glance_store/_drivers/cinder.py b/glance_store/_drivers/cinder.py
index 3b3f64e..3fabdfd 100644
--- a/glance_store/_drivers/cinder.py
+++ b/glance_store/_drivers/cinder.py
@@ -603,7 +603,7 @@ class Store(glance_store.driver.Store):
:param location: `glance_store.location.Location` object, supplied
from glance_store.location.get_location_from_uri()
:raises: `glance_store.exceptions.NotFound` if image does not exist
- :rtype int
+ :rtype: int
"""
loc = location.store_location
diff --git a/glance_store/_drivers/filesystem.py b/glance_store/_drivers/filesystem.py
index cfcef90..5de011d 100644
--- a/glance_store/_drivers/filesystem.py
+++ b/glance_store/_drivers/filesystem.py
@@ -565,7 +565,7 @@ class Store(glance_store.driver.Store):
:param location: `glance_store.location.Location` object, supplied
from glance_store.location.get_location_from_uri()
:raises: `glance_store.exceptions.NotFound` if image does not exist
- :rtype int
+ :rtype: int
"""
filepath, filesize = self._resolve_location(location)
msg = _("Found image at %s.") % filepath
diff --git a/glance_store/_drivers/sheepdog.py b/glance_store/_drivers/sheepdog.py
index 6cfa561..57ba0bf 100644
--- a/glance_store/_drivers/sheepdog.py
+++ b/glance_store/_drivers/sheepdog.py
@@ -328,7 +328,7 @@ class Store(glance_store.driver.Store):
:param location: `glance_store.location.Location` object, supplied
from glance_store.location.get_location_from_uri()
:raises: `glance_store.exceptions.NotFound` if image does not exist
- :param rtype: int
+ :rtype: int
"""
loc = location.store_location
diff --git a/glance_store/_drivers/swift/store.py b/glance_store/_drivers/swift/store.py
index 5586cc2..7801be3 100644
--- a/glance_store/_drivers/swift/store.py
+++ b/glance_store/_drivers/swift/store.py
@@ -1099,7 +1099,7 @@ class BaseStore(driver.Store):
:param auth_token: auth token
:param storage_url: swift storage url
:return: swiftclient connection that allows to request container and
- others
+ others
"""
# initialize a connection
return swiftclient.Connection(
diff --git a/setup.cfg b/setup.cfg
index 9579d58..3028ed6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -68,13 +68,13 @@ cinder =
source-dir = doc/source
build-dir = doc/build
all_files = 1
+warning-is-error = 1
[pbr]
autodoc_index_modules = True
api_doc_dir = reference/api
autodoc_exclude_modules =
glance_store.tests.*
-warnerrors = True
[upload_sphinx]
upload-dir = doc/build/html