summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-06-21 03:14:11 -0400
committerJonathan Holloway <jholloway@redhat.com>2018-06-21 15:10:19 +0000
commit5a58de6d56e37fe38b8b89e9a29ae0668d648a94 (patch)
tree86e0e8ad64093c8ed22110de8278d5fe1b2cf980 /glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
parent28b490b73f1e673ef6f7518c4e4640871ac699fc (diff)
geo-rep/ops: Remove backslashes
Also fix the typo in georep_create Change-Id: I58ca115da827b458d07ce38806a40b1d5bfae643 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py b/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
index 3e9978b..0252db4 100644
--- a/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
@@ -311,18 +311,18 @@ def georep_create(mnode, mastervol, slaveip, slavevol, user=None, force=False):
"""
if user:
if force:
- cmd = "gluster volume geo-replication %s %s@%s::%s create \
- push-pem force" % (mastervol, user, slaveip, slavevol)
+ cmd = ("gluster volume geo-replication %s %s@%s::%s create "
+ "push-pem force" % (mastervol, user, slaveip, slavevol))
else:
- cmd = "gluster volume geo-replication %s %s@%s::%s create \
- create push-pem" % (mastervol, user, slaveip, slavevol)
+ cmd = ("gluster volume geo-replication %s %s@%s::%s create "
+ "push-pem" % (mastervol, user, slaveip, slavevol))
else:
if force:
- cmd = "gluster volume geo-replication %s %s::%s create \
- push-pem force" % (mastervol, slaveip, slavevol)
+ cmd = ("gluster volume geo-replication %s %s::%s create "
+ "push-pem force" % (mastervol, slaveip, slavevol))
else:
- cmd = "gluster volume geo-replication %s %s::%s \
- create push-pem" % (mastervol, slaveip, slavevol)
+ cmd = ("gluster volume geo-replication %s %s::%s create push-pem" %
+ (mastervol, slaveip, slavevol))
return g.run(mnode, cmd)
@@ -498,11 +498,11 @@ def georep_pause(mnode, mastervol, slaveip, slavevol, user=None):
of the command execution.
"""
if user:
- cmd = "gluster volume geo-replication %s %s@%s::%s \
- pause" % (mastervol, user, slaveip, slavevol)
+ cmd = ("gluster volume geo-replication %s %s@%s::%s pause" %
+ (mastervol, user, slaveip, slavevol))
else:
- cmd = "gluster volume geo-replication %s %s::%s \
- pause" % (mastervol, slaveip, slavevol)
+ cmd = ("gluster volume geo-replication %s %s::%s pause" %
+ (mastervol, slaveip, slavevol))
return g.run(mnode, cmd)
@@ -530,11 +530,11 @@ def georep_resume(mnode, mastervol, slaveip, slavevol, user=None):
"""
if user:
- cmd = "gluster volume geo-replication %s %s@%s::%s \
- resume" % (mastervol, user, slaveip, slavevol)
+ cmd = ("gluster volume geo-replication %s %s@%s::%s resume" %
+ (mastervol, user, slaveip, slavevol))
else:
- cmd = "gluster volume geo-replication %s %s::%s \
- resume" % (mastervol, slaveip, slavevol)
+ cmd = ("gluster volume geo-replication %s %s::%s resume" %
+ (mastervol, slaveip, slavevol))
return g.run(mnode, cmd)