mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-03 18:02:03 +00:00
vm_start: drop redundant if
since both if and else branch contain identical code Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
db1f8b39e1
commit
756cd7ea56
@ -5008,11 +5008,7 @@ sub vm_start {
|
|||||||
foreach my $opt (sort keys %$local_volumes) {
|
foreach my $opt (sort keys %$local_volumes) {
|
||||||
my $drivestr = $local_volumes->{$opt};
|
my $drivestr = $local_volumes->{$opt};
|
||||||
mon_cmd($vmid, "nbd-server-add", device => "drive-$opt", writable => JSON::true );
|
mon_cmd($vmid, "nbd-server-add", device => "drive-$opt", writable => JSON::true );
|
||||||
if ($nbd_protocol_version > 0 && $migration_type eq 'secure') {
|
|
||||||
print "storage migration listens on $migrate_storage_uri:exportname=drive-$opt volume:$drivestr\n";
|
print "storage migration listens on $migrate_storage_uri:exportname=drive-$opt volume:$drivestr\n";
|
||||||
} else {
|
|
||||||
print "storage migration listens on $migrate_storage_uri:exportname=drive-$opt volume:$drivestr\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user