summaryrefslogtreecommitdiffstats
path: root/plugins/check_vol_server.py
diff options
context:
space:
mode:
authorDarshan N <dnarayan@redhat.com>2015-08-05 18:00:28 +0530
committerSahina Bose <sabose@redhat.com>2015-08-16 22:58:00 -0700
commitd3b772cfc6b9e4442988540447a003e3ce4410e3 (patch)
tree111002cc18efd7fe4bacb4be3d48214f8f2425a7 /plugins/check_vol_server.py
parentd040cb45469d64fa7534247f9568b48b28114c3f (diff)
server-addons: pep8 fixes.
Change-Id: I920ed33f0e257dd741d1c6df39b46efebe9abd02 Signed-off-by: Darshan N <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/11836 Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'plugins/check_vol_server.py')
-rwxr-xr-xplugins/check_vol_server.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/check_vol_server.py b/plugins/check_vol_server.py
index a45a24d..ba2a88a 100755
--- a/plugins/check_vol_server.py
+++ b/plugins/check_vol_server.py
@@ -16,7 +16,7 @@ def _getListHosts(hostgroup):
"GET hostgroups\nColumns: members_with_state\n"
"Filter: name = " + hostgroup + "\n"))[0][0]
# Get the only those nodes which are UP and
- #glusterd service is running
+ # glusterd service is running
for row in table:
if row[1] == utils.HostStatusCode.UP and \
_getGlusterdStatus(row[0]) \
@@ -243,13 +243,13 @@ def _executeRandomHost(hostgroup, command):
if status != utils.PluginStatusCode.UNKNOWN:
return status, output
- #random host is not able to execute the command
- #Now try to iterate through the list of hosts
- #in the host group and send the command until
- #the command is successful
+ # random host is not able to execute the command
+ # Now try to iterate through the list of hosts
+ # in the host group and send the command until
+ # the command is successful
- #No need to send it to host which we already sent unless volume locked
- if not "UNKNOWN: temporary error" in output:
+ # No need to send it to host which we already sent unless volume locked
+ if "UNKNOWN: temporary error" not in output:
# if volume locked,we can try on same host
list_hosts.remove(host)
for host in list_hosts: