Merge "Fix some reST field lists in docstrings"

This commit is contained in:
Jenkins 2017-04-16 06:23:23 +00:00 committed by Gerrit Code Review
commit 8e7dba8d18
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ class DbQuotaDriver(object):
:param context: The request context, for access checks.
:param resources: A dictionary of the registered resource keys.
:param tenant_id: The ID of the tenant to return default quotas for.
:return dict: from resource name to dict of name and limit
:return: dict from resource name to dict of name and limit
"""
# Currently the tenant_id parameter is unused, since all tenants
# share the same default values. This may change in the future so
@ -57,7 +57,7 @@ class DbQuotaDriver(object):
:param context: The request context, for access checks.
:param resources: A dictionary of the registered resource keys.
:param tenant_id: The ID of the tenant to return quotas for.
:return dict: from resource name to dict of name and limit
:return: dict from resource name to dict of name and limit
"""
# init with defaults
@ -92,7 +92,7 @@ class DbQuotaDriver(object):
:param context: The request context, for access checks.
:param resources: A dictionary of the registered resource keys.
:return quotas: list of dict of tenant_id:, resourcekey1:
:return: quotas list of dict of tenant_id:, resourcekey1:
resourcekey2: ...
"""
tenant_default = dict((key, resource.default)

View File

@ -88,7 +88,7 @@ class _TypeDriverBase(object):
def get_mtu(self, physical):
"""Get driver's network MTU.
:returns mtu: maximum transmission unit
:returns: mtu maximum transmission unit
Returns the mtu for the network based on the config values and
the network type.