From 8cf2829d536ed6a6fcaec91d090d4b04f74b96c0 Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Fri, 2 May 2014 15:38:49 -0500 Subject: [PATCH] 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 --- keystoneclient/service_catalog.py | 2 +- keystoneclient/v3/contrib/trusts.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/keystoneclient/service_catalog.py b/keystoneclient/service_catalog.py index 3018e346c..7fdf856cb 100644 --- a/keystoneclient/service_catalog.py +++ b/keystoneclient/service_catalog.py @@ -205,7 +205,7 @@ class ServiceCatalog(object): :param string endpoint_type: Type of endpoint. :param string region_name: Region of the endpoint. :param string service_name: The assigned name of the service. - : + """ if not self.get_data(): raise exceptions.EmptyCatalog('The service catalog is empty.') diff --git a/keystoneclient/v3/contrib/trusts.py b/keystoneclient/v3/contrib/trusts.py index a59cef979..9336b1e0a 100644 --- a/keystoneclient/v3/contrib/trusts.py +++ b/keystoneclient/v3/contrib/trusts.py @@ -39,6 +39,7 @@ class TrustManager(base.CrudManager): project=None, impersonation=False, expires_at=None, remaining_uses=None, **kwargs): """Create a 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 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 to generate a token. None means unlimited tokens. + """ # Convert role_names list into list-of-dict API format if role_names: