Skip to content

Commit

Permalink
Only reset cpu setting if any
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Oct 13, 2017
1 parent 44d35fd commit c202784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ravada/VM/KVM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ sub _xml_remove_cpu {
my $doc = shift;
my ($domain) = $doc->findnodes('/domain') or confess "Missing node domain";
my ($cpu) = $domain->findnodes('cpu');
$domain->removeChild($cpu);
$domain->removeChild($cpu) if $cpu;
}
sub _xml_modify_video {
Expand Down

0 comments on commit c202784

Please sign in to comment.