summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/gluster_init.py
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2016-11-16 17:36:15 +0530
committerJonathan Holloway <jholloway@redhat.com>2016-12-12 08:01:33 -0800
commit3070312c13e02cace3041d3429b0c31fc10b73ee (patch)
tree15b202c91c00fd93ab5559bced17b2e7fa27127f /glustolibs-gluster/glustolibs/gluster/gluster_init.py
parentb7aea27f6662fd5b0344c6dbffcf2b9a86c1f8cc (diff)
Clean up pyflakes and pep8 errors
Change-Id: Ibdd092118d3bb912716c46fd278ef3c680a6e742 Signed-off-by: Nigel Babu <nigelb@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/gluster_init.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/gluster_init.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/gluster_init.py b/glustolibs-gluster/glustolibs/gluster/gluster_init.py
index 1820807..371e187 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.