mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
Fix bug searching for ceph parent image
This commit is contained in:
parent
35e0d69d22
commit
8ef74417f0
@ -129,7 +129,7 @@ rbd_top_parent() {
|
||||
pool=$(echo $1 | cut -f1 -d'/')
|
||||
volume=$(echo $1 | cut -f2 -d'/')
|
||||
|
||||
snap0=$($RBD ls $pool | grep -E "$volume(-.+)?@0")
|
||||
snap0=$($RBD info -p $pool $volume | grep "parent:" | awk '{print $2}' | sed "s|^$pool/||")
|
||||
|
||||
if [ -n "$snap0" ]; then
|
||||
volume=$pool/${snap0%%@*}
|
||||
|
Loading…
x
Reference in New Issue
Block a user