Commit 442a7576 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(ports): fixed edge cases on remove

parent 8da316cb
......@@ -3015,7 +3015,7 @@ sub _close_exposed_port($self,$internal_port_req=undef) {
my %port;
while ( my $row = $sth->fetchrow_hashref() ) {
lock_hash(%$row);
$port{$row->{public_port}} = $row;
$port{$row->{public_port}} = $row if $row->{public_port};
}
lock_hash(%port);
......@@ -3128,7 +3128,7 @@ sub list_ports($self) {
$clone_port{$data->{internal_port}}++;
}
if (!$self->is_base && $self->id_base) {
if ($self->is_known && !$self->is_base && $self->id_base) {
my $base = Ravada::Front::Domain->open($self->id_base);
my @ports_base = $base->list_ports();
for my $data (@ports_base) {
......
Supports Markdown
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