mirror of https://github.com/apache/cloudstack.git
bug 11931: quote the snapshop name, in case whitespace in the name
status 11931: resolved fixed Reviewed-by: kishan
This commit is contained in:
parent
c530cbad2a
commit
4b56821672
|
|
@ -54,13 +54,13 @@ create_snapshot() {
|
|||
return $failed
|
||||
fi
|
||||
|
||||
$qemu_img snapshot -c $snapshotname $disk
|
||||
$qemu_img snapshot -c "$snapshotname" $disk
|
||||
|
||||
if [ $? -gt 0 ]
|
||||
then
|
||||
failed=2
|
||||
printf "***Failed to create snapshot $snapshotname for path $disk\n" >&2
|
||||
$qemu_img snapshot -d $snapshotname $disk
|
||||
$qemu_img snapshot -d "$snapshotname" $disk
|
||||
|
||||
if [ $? -gt 0 ]
|
||||
then
|
||||
|
|
|
|||
Loading…
Reference in New Issue