From abeda56eeaae9853b333e1009e6e7d3db58cb60d Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Tue, 27 Sep 2016 13:19:56 +0700 Subject: [PATCH] Docstrings should not start with a space As per OpenStack Docstrings guide lines [1]: [H401] Docstrings should not start with a space. [H403] Multi line docstrings should end on a new line. [H404] Multi line docstrings should start without a leading new line. [H405] Multi line docstrings should start with a one line summary followed by an empty line. [1] http://docs.openstack.org/developer/hacking/#docstrings trivialfix Change-Id: Ife5049b73c65b7dc3eecc18567343ed95fdfe05c --- freezer_dr/evacuators/drivers/dummy/dummy.py | 2 +- freezer_dr/monitors/drivers/dummy/driver.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/freezer_dr/evacuators/drivers/dummy/dummy.py b/freezer_dr/evacuators/drivers/dummy/dummy.py index 3ee3142..65c5f18 100644 --- a/freezer_dr/evacuators/drivers/dummy/dummy.py +++ b/freezer_dr/evacuators/drivers/dummy/dummy.py @@ -15,7 +15,7 @@ from freezer_dr.evacuators.common.driver import EvacuatorBaseDriver class DummyEvacuator(EvacuatorBaseDriver): - """ Evacuation driver that does nothing. Useful for testing other parts + """Evacuation driver that does nothing. Useful for testing other parts of Freezer-DR. """ diff --git a/freezer_dr/monitors/drivers/dummy/driver.py b/freezer_dr/monitors/drivers/dummy/driver.py index 1bea064..0fa4977 100644 --- a/freezer_dr/monitors/drivers/dummy/driver.py +++ b/freezer_dr/monitors/drivers/dummy/driver.py @@ -15,8 +15,8 @@ from freezer_dr.monitors.common.driver import MonitorBaseDriver class DummyDriver(MonitorBaseDriver): - """ - A monitoring driver that returns a configured list of nodes as failed. + """A monitoring driver that returns a configured list of nodes as failed. + This can be useful for testing without actually shutting down the nodes. The nodes that should be reported as failing, can be configured in the monitoring section of the freezer_dr configuration file as follows: