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
aa0220f4
Commit
aa0220f4
authored
Oct 16, 2017
by
Francesc Guasch
Browse files
[#202] check the VM works before adding to the list
parent
01b529f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
aa0220f4
...
...
@@ -900,7 +900,8 @@ sub _list_remote_vms($self ) {
my
@vms
;
while
(
my
$row
=
$sth
->
fetchrow_hashref
)
{
my
$vm
=
Ravada::
VM
->
open
(
$row
->
{
id
});
my
$vm
;
eval
{
$vm
=
Ravada::
VM
->
open
(
$row
->
{
id
})
};
push
@vms
,(
$vm
)
if
$vm
&&
$vm
->
vm
;
}
$sth
->
finish
;
...
...
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