]> git.proxmox.com Git - pve-container.git/commitdiff
setup: protected_call: the plugin is not required
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 1 Aug 2017 09:28:53 +0000 (11:28 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 2 Aug 2017 07:46:47 +0000 (09:46 +0200)
we don't use this anywhere where this would be the case

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Setup.pm

index edf3734f7569eaf7fb322bcaee46cc193a24b059..738507a693694300553d52ece67e1aa74b3a4811 100644 (file)
@@ -97,8 +97,6 @@ sub new {
 sub protected_call {
     my ($self, $sub) = @_;
 
-    die "internal error" if !$self->{plugin};
-
     # avoid recursion:
     return $sub->() if $self->{in_chroot};
 
@@ -116,7 +114,6 @@ sub protected_call {
        close($res_in);
        # avoid recursive forks
        $self->{in_chroot} = 1;
-       $self->{plugin}->{in_chroot} = 1;
        eval {
            chroot($rootdir) or die "failed to change root to: $rootdir: $!\n";
            chdir('/') or die "failed to change to root directory\n";