]> git.proxmox.com Git - pve-container.git/commitdiff
array usage fixup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 27 Dec 2018 13:18:49 +0000 (14:18 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 27 Dec 2018 13:20:35 +0000 (14:20 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/API2/LXC.pm

index 99bfd15a978bce7c6eee943a63679c3e9115d668..f19d9ffc131f5d3fa37a1ac69fcc4fb7effa014e 100644 (file)
@@ -360,7 +360,7 @@ __PACKAGE__->register_method({
            eval {
                my ($orig_conf, $orig_mp_param) = PVE::LXC::Create::recover_config($archive);
                if ($authuser eq 'root@pam') {
-                   @{$conf->{lxc}} = [grep { $_->[0] eq 'lxc.idmap' } @{$orig_conf->{lxc}}]; # do not remove lxc.idmap entries
+                   $conf->{lxc} = [grep { $_->[0] eq 'lxc.idmap' } @{$orig_conf->{lxc}}]; # do not remove lxc.idmap entries
                }
                if ($storage_only_mode) {
                    if ($restore) {