Commit a6cd5375 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(backend): check enabled before open VM

parent 8206cede
......@@ -499,7 +499,7 @@ sub _start_checks($self, @args) {
}
sub _search_already_started($self, $fast = 0) {
my $sql = "SELECT id FROM vms where vm_type=?";
my $sql = "SELECT id FROM vms where vm_type=? AND enabled=1";
$sql .= " AND is_active=1" if $fast;
my $sth = $$CONNECTOR->dbh->prepare($sql);
$sth->execute($self->_vm->type);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment