Skip to content

Commit

Permalink
fix: read options directly from DB
Browse files Browse the repository at this point in the history
issue #2032
  • Loading branch information
frankiejol committed Mar 8, 2024
1 parent e24a821 commit 6c44b4a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/Ravada/WebSocket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,10 @@ sub _get_node_info($rvd, $args) {

return {} if!$user->is_admin;

my $node = Ravada::VM->open(id => $id_node, readonly => 1);
$node->_data('hostname');
$node->{_data}->{is_local} = $node->is_local;
$node->{_data}->{has_bases} = scalar($node->list_bases);
return $node->{_data};
my $sth = $rvd->_dbh->prepare("SELECT * FROM vms WHERE id=?");
$sth->execute($id_node);
my $data = $sth->fetchrow_hashref;
return $data;

}

Expand Down

0 comments on commit 6c44b4a

Please sign in to comment.