Fix docstrings in keystoneclient

Trusts and service catalog had a few malformed docstrings
that caused warnings when building docs.

Change-Id: Iea8612c3aaebea54c00b02c73c77f0c9e79f86bc
Partial-Bug: #1315523
This commit is contained in:
Steve Martinelli
2014-05-02 15:38:49 -05:00
parent 9b1feca895
commit 8cf2829d53
2 changed files with 3 additions and 1 deletions

View File

@@ -205,7 +205,7 @@ class ServiceCatalog(object):
:param string endpoint_type: Type of endpoint. :param string endpoint_type: Type of endpoint.
:param string region_name: Region of the endpoint. :param string region_name: Region of the endpoint.
:param string service_name: The assigned name of the service. :param string service_name: The assigned name of the service.
:
""" """
if not self.get_data(): if not self.get_data():
raise exceptions.EmptyCatalog('The service catalog is empty.') raise exceptions.EmptyCatalog('The service catalog is empty.')

View File

@@ -39,6 +39,7 @@ class TrustManager(base.CrudManager):
project=None, impersonation=False, expires_at=None, project=None, impersonation=False, expires_at=None,
remaining_uses=None, **kwargs): remaining_uses=None, **kwargs):
"""Create a Trust. """Create a Trust.
:param string trustee_user: user who is capable of consuming the trust :param string trustee_user: user who is capable of consuming the trust
:param string trustor_user: user who's authorization is being delegated :param string trustor_user: user who's authorization is being delegated
:param string role_names: subset of trustor's roles to be granted :param string role_names: subset of trustor's roles to be granted
@@ -48,6 +49,7 @@ class TrustManager(base.CrudManager):
:param integer remaining_uses: how many times this trust can be used :param integer remaining_uses: how many times this trust can be used
to generate a token. None means to generate a token. None means
unlimited tokens. unlimited tokens.
""" """
# Convert role_names list into list-of-dict API format # Convert role_names list into list-of-dict API format
if role_names: if role_names: