summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-05-29 14:19:08 +0000
committerGerrit Code Review <review@openstack.org>2018-05-29 14:19:08 +0000
commitd79cd98b001c2dedde2f430551ef9005df5ee1d6 (patch)
tree997b292c61d2622264cfafc63c467088a8a5d22b
parent1cdbe681bbc9aa96bdf2d4d60941e28140470397 (diff)
parent29d169a7a903e0dd2302d5a5feee4c6fa3c48dd9 (diff)
downloadglance_store-d79cd98b001c2dedde2f430551ef9005df5ee1d6.tar.gz
Merge "TrivialFix: Correct reST field lists in docstrings"
-rw-r--r--glance_store/_drivers/cinder.py14
-rw-r--r--glance_store/_drivers/filesystem.py2
-rw-r--r--glance_store/_drivers/rbd.py4
-rw-r--r--glance_store/_drivers/sheepdog.py2
-rw-r--r--glance_store/_drivers/vmware_datastore.py2
-rw-r--r--glance_store/driver.py2
6 files changed, 13 insertions, 13 deletions
diff --git a/glance_store/_drivers/cinder.py b/glance_store/_drivers/cinder.py
index 7cb9d6a..906a4ec 100644
--- a/glance_store/_drivers/cinder.py
+++ b/glance_store/_drivers/cinder.py
@@ -568,12 +568,12 @@ class Store(glance_store.driver.Store):
where to find the image file, and returns a tuple of generator
(for reading the image file) and image_size
- :param location `glance_store.location.Location` object, supplied
+ :param location: `glance_store.location.Location` object, supplied
from glance_store.location.get_location_from_uri()
:param offset: offset to start reading
:param chunk_size: size to read, or None to get all the image
:param context: Request context
- :raises `glance_store.exceptions.NotFound` if image does not exist
+ :raises: `glance_store.exceptions.NotFound` if image does not exist
"""
loc = location.store_location
@@ -638,9 +638,9 @@ class Store(glance_store.driver.Store):
:param context: The request context
:param verifier: An object used to verify signatures for images
- :retval tuple of URL in backing store, bytes written, checksum
+ :returns: tuple of URL in backing store, bytes written, checksum
and a dictionary with storage system specific information
- :raises `glance_store.exceptions.Duplicate` if the image already
+ :raises: `glance_store.exceptions.Duplicate` if the image already
existed
"""
@@ -745,11 +745,11 @@ class Store(glance_store.driver.Store):
Takes a `glance_store.location.Location` object that indicates
where to find the image file to delete
- :location `glance_store.location.Location` object, supplied
+ :param location: `glance_store.location.Location` object, supplied
from glance_store.location.get_location_from_uri()
- :raises NotFound if image does not exist
- :raises Forbidden if cannot delete because of permissions
+ :raises: NotFound if image does not exist
+ :raises: Forbidden if cannot delete because of permissions
"""
loc = location.store_location
self._check_context(context)
diff --git a/glance_store/_drivers/filesystem.py b/glance_store/_drivers/filesystem.py
index c55a5a4..5085a09 100644
--- a/glance_store/_drivers/filesystem.py
+++ b/glance_store/_drivers/filesystem.py
@@ -657,7 +657,7 @@ class Store(glance_store.driver.Store):
:param image_size: The size of the image data to write, in bytes
:param verifier: An object used to verify signatures for images
- :retval: tuple of URL in backing store, bytes written, checksum
+ :returns: tuple of URL in backing store, bytes written, checksum
and a dictionary with storage system specific information
:raises: `glance_store.exceptions.Duplicate` if the image already
existed
diff --git a/glance_store/_drivers/rbd.py b/glance_store/_drivers/rbd.py
index 7b803bc..e9e1470 100644
--- a/glance_store/_drivers/rbd.py
+++ b/glance_store/_drivers/rbd.py
@@ -353,7 +353,7 @@ class Store(driver.Store):
:param image_name: Image's name
- :retval: `glance_store.rbd.StoreLocation` object
+ :returns: `glance_store.rbd.StoreLocation` object
"""
librbd = rbd.RBD()
features = conn.conf_get('rbd_default_features')
@@ -443,7 +443,7 @@ class Store(driver.Store):
:param image_size: The size of the image data to write, in bytes
:param verifier: An object used to verify signatures for images
- :retval: tuple of URL in backing store, bytes written, checksum
+ :returns: tuple of URL in backing store, bytes written, checksum
and a dictionary with storage system specific information
:raises: `glance_store.exceptions.Duplicate` if the image already
existed
diff --git a/glance_store/_drivers/sheepdog.py b/glance_store/_drivers/sheepdog.py
index 9813e0d..0f14bbe 100644
--- a/glance_store/_drivers/sheepdog.py
+++ b/glance_store/_drivers/sheepdog.py
@@ -349,7 +349,7 @@ class Store(glance_store.driver.Store):
:param image_size: The size of the image data to write, in bytes
:param verifier: An object used to verify signatures for images
- :retval: tuple of URL in backing store, bytes written, and checksum
+ :returns: tuple of URL in backing store, bytes written, and checksum
:raises: `glance_store.exceptions.Duplicate` if the image already
existed
"""
diff --git a/glance_store/_drivers/vmware_datastore.py b/glance_store/_drivers/vmware_datastore.py
index e8e43b6..a237c91 100644
--- a/glance_store/_drivers/vmware_datastore.py
+++ b/glance_store/_drivers/vmware_datastore.py
@@ -545,7 +545,7 @@ class Store(glance_store.Store):
:param image_file: The image data to write, as a file-like object
:param image_size: The size of the image data to write, in bytes
:param verifier: An object used to verify signatures for images
- :retval tuple of URL in backing store, bytes written, checksum
+ :returns: tuple of URL in backing store, bytes written, checksum
and a dictionary with storage system specific information
:raises: `glance.common.exceptions.Duplicate` if the image already
existed
diff --git a/glance_store/driver.py b/glance_store/driver.py
index 45f69ce..2462fd4 100644
--- a/glance_store/driver.py
+++ b/glance_store/driver.py
@@ -136,7 +136,7 @@ class Store(capabilities.StoreCapability):
:param image_file: The image data to write, as a file-like object
:param image_size: The size of the image data to write, in bytes
- :retval: tuple of URL in backing store, bytes written, checksum
+ :returns: tuple of URL in backing store, bytes written, checksum
and a dictionary with storage system specific information
:raises: `glance_store.exceptions.Duplicate` if the image already
existed