According to git history, the $vmid argument was never used. Reported-by: Alexandre Derumier <alexandre.derum...@groupe-cyllene.com> Signed-off-by: Fiona Ebner <f.eb...@proxmox.com> --- PVE/QemuServer/Drive.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/QemuServer/Drive.pm b/PVE/QemuServer/Drive.pm index 81e1aa04..473970c1 100644 --- a/PVE/QemuServer/Drive.pm +++ b/PVE/QemuServer/Drive.pm @@ -87,7 +87,7 @@ sub get_cdrom_path { } sub get_iso_path { - my ($storecfg, $vmid, $cdrom) = @_; + my ($storecfg, $cdrom) = @_; if ($cdrom eq 'cdrom') { return get_cdrom_path(); @@ -112,7 +112,7 @@ sub get_path_and_format { my ($storeid) = PVE::Storage::parse_volume_id($volid, 1); if (drive_is_cdrom($drive)) { - $path = get_iso_path($storecfg, $vmid, $volid); + $path = get_iso_path($storecfg, $volid); die "$drive_id: cannot back cdrom drive with a live restore image\n" if $live_restore_name; } else { if ($storeid) { -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel