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>
This commit is contained in:
Avra Sengupta 2015-04-02 12:51:34 +05:30 committed by Vijay Bellur
parent 28397cae41
commit f7a14c0fe5

View File

@ -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,