Skip to content

Commit

Permalink
refactor(backend): try and fail if it can't remove KVM volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed May 14, 2021
1 parent 636ba94 commit 5271f22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Ravada/Domain/KVM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,12 @@ sub _vol_remove {
if $@ !~ /libvirt error code: 50,/i;
next;
}
for ( ;; ) {
for ( 1 .. 3 ) {
eval { $vol->delete() };
last if !$@;
sleep 1;
}
die $@ if $@;
eval { $pool->refresh };
warn $@ if $@;
}
Expand Down

0 comments on commit 5271f22

Please sign in to comment.