mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-25 00:24:15 +00:00
remove a superfluous condition
This is only reached if the $line from which $virtdev originates matches, and the part in $virtdev can never be false then.
This commit is contained in:
parent
d9faf79016
commit
c0f7406e93
@ -5264,7 +5264,7 @@ sub restore_update_config_line {
|
||||
my $di = parse_drive($virtdev, $value);
|
||||
if (defined($di->{backup}) && !$di->{backup}) {
|
||||
print $outfd "#$line";
|
||||
} elsif ($virtdev && $map->{$virtdev}) {
|
||||
} elsif ($map->{$virtdev}) {
|
||||
delete $di->{format}; # format can change on restore
|
||||
$di->{file} = $map->{$virtdev};
|
||||
$value = print_drive($vmid, $di);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user