summaryrefslogtreecommitdiffstats
path: root/extras/snap_scheduler/gcron.py
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2015-04-02 12:51:34 +0530
committerVijay Bellur <vbellur@redhat.com>2015-04-04 10:49:58 -0700
commitf7a14c0fe5fe92fc6ebaf37322748918a57afef8 (patch)
tree3fd351b32999cdfacf9f2c71a094d056438629a3 /extras/snap_scheduler/gcron.py
parent28397cae4102ac3f08576ebaf071ad92683097e8 (diff)
snapshot/scheduler: Fix the snapshot create command.
The create command being executed was sent with wrong parameters. Change-Id: I9b3cf23b3a02cf8309d50bf70439ad02b37f191a BUG: 1208067 Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/10114 Reviewed-by: Aravinda VK <avishwan@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'extras/snap_scheduler/gcron.py')
-rwxr-xr-xextras/snap_scheduler/gcron.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/snap_scheduler/gcron.py b/extras/snap_scheduler/gcron.py
index 763eb1460b8..f7e8a4924ed 100755
--- a/extras/snap_scheduler/gcron.py
+++ b/extras/snap_scheduler/gcron.py
@@ -60,7 +60,8 @@ def takeSnap(volname=""):
cli = ["gluster",
"snapshot",
"create",
- "%s-snapshot-%s %s" % (volname, timeStr, volname)]
+ "%s-snapshot-%s" % (volname, timeStr),
+ "%s" % (volname)]
log.debug("Running command '%s'", " ".join(cli))
p = subprocess.Popen(cli, stdout=subprocess.PIPE,