Fix :param: in docstring
In docstring :param should be used instead of :param: Change-Id: Ie836fe46cac9210af7e14f3821c26010220c2722
This commit is contained in:
parent
4e6727e3eb
commit
6d89a941fc
|
@ -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 = []
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue