From 3070312c13e02cace3041d3429b0c31fc10b73ee Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Wed, 16 Nov 2016 17:36:15 +0530 Subject: Clean up pyflakes and pep8 errors Change-Id: Ibdd092118d3bb912716c46fd278ef3c680a6e742 Signed-off-by: Nigel Babu --- glustolibs-gluster/glustolibs/gluster/gluster_init.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'glustolibs-gluster/glustolibs/gluster/gluster_init.py') diff --git a/glustolibs-gluster/glustolibs/gluster/gluster_init.py b/glustolibs-gluster/glustolibs/gluster/gluster_init.py index 182080717..371e187ea 100644 --- a/glustolibs-gluster/glustolibs/gluster/gluster_init.py +++ b/glustolibs-gluster/glustolibs/gluster/gluster_init.py @@ -21,6 +21,7 @@ """ from glusto.core import Glusto as g + def start_glusterd(servers): """Starts glusterd on specified servers if they are not running. @@ -46,6 +47,7 @@ def start_glusterd(servers): return True + def stop_glusterd(servers): """Stops the glusterd on specified servers. @@ -97,6 +99,7 @@ def restart_glusterd(servers): return True + def is_glusterd_running(servers): """Checks the glusterd status on specified servers. @@ -122,13 +125,14 @@ def is_glusterd_running(servers): g.log.error("glusterd is not running on the server %s", server) rc = 1 if cmd2_results[server][0] == 0: - g.log.error("PID of glusterd is alive and status is not running") + g.log.error("PID of glusterd is alive and status is not " + "running") rc = -1 return rc -#TODO: THIS IS NOT IMPLEMENTED YET. PLEASE DO THIS MANUALLY -# TILL WE IMPLEMENT THIS PART +# TODO: THIS IS NOT IMPLEMENTED YET. PLEASE DO THIS MANUALLY +# TILL WE IMPLEMENT THIS def env_setup_servers(servers): """Set up environment on all the specified servers. -- cgit