[pve-devel] [PATCH container 3/3] add vtype to rename_volume call

Wolfgang Bumiller
2025-07-29T11:15:42Z

src/PVE/API2/LXC.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index aa11fc6..50c7670 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -2601,7 +2601,7 @@ __PACKAGE__->register_method({
(PVE::Storage::parse_volname($storecfg, $source_volid))[6];

my $new_volid = PVE::Storage::rename_volume(
- $storecfg, $source_volid, $target_vmid,
+ $storecfg, $source_volid, $target_vmid, undef, 'ct-vol',
);