Fix :param: in docstring

In docstring :param should be used instead of :param:

Change-Id: Ie836fe46cac9210af7e14f3821c26010220c2722
This commit is contained in:
zhufl 2019-06-14 16:39:57 +08:00
parent 4e6727e3eb
commit 6d89a941fc
4 changed files with 12 additions and 12 deletions

View File

@ -18,7 +18,7 @@ from blazar.monitor import polling_monitor
def load_monitors(plugins):
"""Load resource monitors.
:param: plugins: resource plugins.
:param plugins: resource plugins.
:return: a list of monitors.
"""
monitors = []

View File

@ -91,9 +91,9 @@ class BasePlugin(object):
interval_end):
"""Heal reservations which suffer from resource failures.
:param: failed_resources: failed resources
:param: interval_begin: start date of the period to heal.
:param: interval_end: end date of the period to heal.
:param failed_resources: failed resources
:param interval_begin: start date of the period to heal.
:param interval_end: end date of the period to heal.
:return: a dictionary of {reservation id: flags to update}
e.g. {'de27786d-bd96-46bb-8363-19c13b2c6657':
{'missing_resources': True}}

View File

@ -603,9 +603,9 @@ class VirtualInstancePlugin(base.BasePlugin, nova.NovaClientWrapper):
interval_end):
"""Heal reservations which suffer from resource failures.
:param: failed_resources: failed resources
:param: interval_begin: start date of the period to heal.
:param: interval_end: end date of the period to heal.
:param failed_resources: failed resources
:param interval_begin: start date of the period to heal.
:param interval_end: end date of the period to heal.
:return: a dictionary of {reservation id: flags to update}
e.g. {'de27786d-bd96-46bb-8363-19c13b2c6657':
{'missing_resources': True}}

View File

@ -225,9 +225,9 @@ class PhysicalHostPlugin(base.BasePlugin, nova.NovaClientWrapper):
interval_end):
"""Heal reservations which suffer from resource failures.
:param: failed_resources: a list of failed hosts.
:param: interval_begin: start date of the period to heal.
:param: interval_end: end date of the period to heal.
:param failed_resources: a list of failed hosts.
:param interval_begin: start date of the period to heal.
:param interval_end: end date of the period to heal.
:return: a dictionary of {reservation id: flags to update}
e.g. {'de27786d-bd96-46bb-8363-19c13b2c6657':
{'missing_resources': True}}
@ -263,7 +263,7 @@ class PhysicalHostPlugin(base.BasePlugin, nova.NovaClientWrapper):
def _reallocate(self, allocation):
"""Allocate an alternative host.
:param: allocation: allocation to change.
:param allocation: allocation to change.
:return: True if an alternative host was successfully allocated.
"""
reservation = db_api.reservation_get(allocation['reservation_id'])
@ -875,7 +875,7 @@ class PhysicalHostMonitorPlugin(base.BaseMonitorPlugin,
def _handle_failures(self, failed_hosts):
"""Handle resource failures.
:param: failed_hosts: a list of failed hosts.
:param failed_hosts: a list of failed hosts.
:return: a dictionary of {reservation id: flags to update}
e.g. {'de27786d-bd96-46bb-8363-19c13b2c6657':
{'missing_resources': True}}