[pve-devel] [PATCH container v3 1/8] api: create: move delayed_mp_param variable closer to usage
Fiona Ebner
f.ebner at proxmox.com
Fri Jan 23 15:34:21 CET 2026
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
New in v3.
src/PVE/API2/LXC.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 3d74f71..204e1c8 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -384,7 +384,6 @@ __PACKAGE__->register_method({
if !$storage_only_mode && !defined($mp_param->{rootfs});
# check storage access, activate storage
- my $delayed_mp_param = {};
PVE::LXC::Config->foreach_volume(
$mp_param,
sub {
@@ -465,6 +464,8 @@ __PACKAGE__->register_method({
}
}
}
+
+ my $delayed_mp_param = {};
if ($storage_only_mode) {
if ($restore) {
if (!defined($orig_mp_param)) {
--
2.47.3
More information about the pve-devel
mailing list