Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
28d05ba5
Commit
28d05ba5
authored
Aug 24, 2016
by
Francesc Guasch
Browse files
Fixed crash if no VMs found
parent
07cc81c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
28d05ba5
...
...
@@ -607,7 +607,10 @@ sub search_vm {
confess
"
Missing VM type
"
if
!
$type
;
my
$class
=
'
Ravada::VM::
'
.
uc
(
$type
);
for
my
$vm
(
@
{
$self
->
vm
})
{
my
@vms
;
eval
{
@vms
=
@
{
$self
->
vm
}
};
for
my
$vm
(
@vms
)
{
return
$vm
if
ref
(
$vm
)
eq
$class
;
}
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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