diff --git a/blazar/monitor/__init__.py b/blazar/monitor/__init__.py index 8ecbb38e..573d248f 100644 --- a/blazar/monitor/__init__.py +++ b/blazar/monitor/__init__.py @@ -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 = [] diff --git a/blazar/plugins/base.py b/blazar/plugins/base.py index f6a0381e..60b0d2e0 100644 --- a/blazar/plugins/base.py +++ b/blazar/plugins/base.py @@ -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}} diff --git a/blazar/plugins/instances/instance_plugin.py b/blazar/plugins/instances/instance_plugin.py index 40e5dd91..d508ad95 100644 --- a/blazar/plugins/instances/instance_plugin.py +++ b/blazar/plugins/instances/instance_plugin.py @@ -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}} diff --git a/blazar/plugins/oshosts/host_plugin.py b/blazar/plugins/oshosts/host_plugin.py index a9d50af7..f91961e6 100644 --- a/blazar/plugins/oshosts/host_plugin.py +++ b/blazar/plugins/oshosts/host_plugin.py @@ -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}}