Skip to content

Commit

Permalink
wip: deal with gone node
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Feb 8, 2024
1 parent e754795 commit 929eee1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Ravada/VM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ sub open {
$args{security} = decode_json($row->{security}) if $row->{security};

my $vm = $self->new(%args);
return if !$vm || !$vm->vm;
$VM{$args{id}} = $vm unless $args{readonly};
return $vm;

Expand Down
1 change: 0 additions & 1 deletion lib/Ravada/VM/KVM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,6 @@ sub _domain_create_from_base {

_xml_modify_disk($xml, \@device_disk);#, \@swap_disk);

my $network = $args{options}->{network};
$self->_xml_set_network($xml, $network) if $network;

my ($domain, $spice_password)
Expand Down
1 change: 1 addition & 0 deletions t/lib/Test/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2629,6 +2629,7 @@ sub _check_leftovers_users {

sub _check_iptables() {
return if $>;
return if !$VM_VALID{KVM};
for my $table ( 'mangle', 'nat') {
my @cmd = ("iptables" ,"-t", $table,"-L","POSTROUTING");
my ($in, $out, $err);
Expand Down

0 comments on commit 929eee1

Please sign in to comment.