summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/gluster_base_class.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_base_class.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_base_class.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/gluster_base_class.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
index 276e51d..c179462 100644
--- a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
+++ b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
@@ -297,7 +297,7 @@ class GlusterVolumeBaseClass(GlusterBaseClass):
# Validate if peer is connected from all the servers
for server in cls.servers:
ret = is_peer_connected(server, cls.servers)
- assert (ret == True), "Validating Peers to be in Cluster Failed"
+ assert (ret is True), "Validating Peers to be in Cluster Failed"
# Print Peer Status from mnode
_, _, _ = peer_status(cls.mnode)
@@ -306,7 +306,7 @@ class GlusterVolumeBaseClass(GlusterBaseClass):
ret = setup_volume(mnode=cls.mnode,
all_servers_info=cls.all_servers_info,
volume_config=cls.volume, force=True)
- assert (ret == True), "Setup volume %s failed" % cls.volname
+ assert (ret is True), "Setup volume %s failed" % cls.volname
time.sleep(10)
# Print Volume Info and Status
@@ -342,7 +342,7 @@ class GlusterVolumeBaseClass(GlusterBaseClass):
(mount_obj.server_system, mount_obj.volname,
mount_obj.client_system, mount_obj.mountpoint))
rc = False
- assert (rc == True), ("Mounting volume %s on few clients failed" %
+ assert (rc is True), ("Mounting volume %s on few clients failed" %
cls.volname)
@classmethod
@@ -359,9 +359,9 @@ class GlusterVolumeBaseClass(GlusterBaseClass):
mount_obj.client_system, mount_obj.mountpoint)
)
rc = False
- assert (rc == True), ("Unmount of all mounts are not successful")
+ assert (rc is True), ("Unmount of all mounts are not successful")
# Cleanup volume
if cleanup_vol:
ret = cleanup_volume(mnode=cls.mnode, volname=cls.volname)
- assert (ret == True), ("cleanup volume %s failed" % cls.volname)
+ assert (ret is True), ("cleanup volume %s failed" % cls.volname)