bug #3446: Do not clone Ceph volumes if they already exist

(cherry picked from commit 6dea3d1260)
This commit is contained in:
Ruben S. Montero committed 2014-12-15 16:32:09 +01:00
1 parent 10092dc02d
commit 8dd84cdcc3
1 file changed
+2
+2
View File
@@ -76,6 +76,8 @@ fi
CLONE_CMD=$(cat <<EOF
set -e
$RBD info $RBD_DST > /dev/null 2>&1 && exit 0
RBD_FORMAT=\$($RBD info $SRC_PATH | sed -n 's/.*format: // p')
if [ "\$RBD_FORMAT" = "2" ]; then