mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 12:38:19 +00:00
qemu_drive_mirror: raise exception if we cannot parse $dst_volid
This commit is contained in:
parent
ad2cb4111f
commit
08ac653fcf
@ -5154,9 +5154,8 @@ sub qemu_drive_mirror {
|
||||
my $maxwait = 120;
|
||||
|
||||
my $storecfg = PVE::Storage::config();
|
||||
my ($dst_storeid, $dst_volname) = PVE::Storage::parse_volume_id($dst_volid, 1);
|
||||
my ($dst_storeid, $dst_volname) = PVE::Storage::parse_volume_id($dst_volid);
|
||||
|
||||
if ($dst_storeid) {
|
||||
my $dst_scfg = PVE::Storage::storage_config($storecfg, $dst_storeid);
|
||||
|
||||
my $format;
|
||||
@ -5240,7 +5239,6 @@ sub qemu_drive_mirror {
|
||||
sleep 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sub clone_disk {
|
||||
|
Loading…
Reference in New Issue
Block a user