Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
5271f228
Commit
5271f228
authored
May 14, 2021
by
Francesc Guasch
Browse files
refactor(backend): try and fail if it can't remove KVM volumes
parent
636ba94d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Domain/KVM.pm
View file @
5271f228
...
...
@@ -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
$@
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment