Signed-off-by: Fiona Ebner <[email protected]>
---

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



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to