mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
bug #4138: do not use rbd ls -l deleting ceph volumes
This commit is contained in:
parent
60ea093786
commit
f0c137f8f2
@ -129,7 +129,7 @@ rbd_top_parent() {
|
||||
pool=$(echo $1 | cut -f1 -d'/')
|
||||
volume=$(echo $1 | cut -f2 -d'/')
|
||||
|
||||
snap0=$($RBD ls -l $pool | awk '{print $1}' | grep -E "$volume(-.+)?@0")
|
||||
snap0=$($RBD ls $pool | grep -E "$volume(-.+)?@0")
|
||||
|
||||
if [ -n "$snap0" ]; then
|
||||
volume=$pool/${snap0%%@*}
|
||||
|
Loading…
x
Reference in New Issue
Block a user