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

This commit is contained in:
Ruben S. Montero committed 2014-12-15 16:20:32 +01:00
1 parent 4e4930050d
commit 6dea3d1260
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