summaryrefslogtreecommitdiff
path: root/keystoneclient/_discover.py
diff options
context:
space:
mode:
authorMarek Denis <marek.denis@cern.ch>2014-10-15 13:34:19 +0200
committerMarek Denis <marek.denis@cern.ch>2014-10-15 13:34:19 +0200
commit8b267842a701970d4e1aae2f115afe4d73bc5ee6 (patch)
tree7e0d3a9c40a97c0da81f6312434aa11f74c243cd /keystoneclient/_discover.py
parent89dc951f7d5a603f0c34b7c2cb9f7d26d73d9916 (diff)
downloadpython-keystoneclient-8b267842a701970d4e1aae2f115afe4d73bc5ee6.tar.gz
Docstrings should have :returns: everywhere.
Some of the docstrings have ``:return:`` instead of ``:returns:`` keyword. This patch fixes that and make it consistent. Change-Id: I4321a63798ab9e2abdf0bbd716bf2b995be22ba3
Diffstat (limited to 'keystoneclient/_discover.py')
-rw-r--r--keystoneclient/_discover.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/keystoneclient/_discover.py b/keystoneclient/_discover.py
index c9c9792..8816209 100644
--- a/keystoneclient/_discover.py
+++ b/keystoneclient/_discover.py
@@ -291,7 +291,8 @@ class _VersionHacks(object):
:param str service_type: the service_type to look up.
:param str url: The original url that came from a service_catalog.
- :return: Either the unversioned url or the one from the catalog to try.
+ :returns: Either the unversioned url or the one from the catalog
+ to try.
"""
for old, new in self._discovery_data.get(service_type, []):
new_string, number_of_subs_made = old.subn(new, url)
@@ -313,6 +314,6 @@ def get_catalog_discover_hack(service_type, url):
:param str service_type: the service_type to look up.
:param str url: The original url that came from a service_catalog.
- :return: Either the unversioned url or the one from the catalog to try.
+ :returns: Either the unversioned url or the one from the catalog to try.
"""
return _VERSION_HACKS.get_discover_hack(service_type, url)