]> git.proxmox.com Git - pve-container.git/commitdiff
Revert "lxc-pve-{prestart, poststop}-hook: initialize RESTEnvironment"
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 May 2022 06:27:21 +0000 (08:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 May 2022 06:27:25 +0000 (08:27 +0200)
bogus revert to add more meta info to the comment (sorry about that)

This reverts commit a75f83225dd6f4641451a24b18326069ef01f129.

src/lxc-pve-poststop-hook
src/lxc-pve-prestart-hook

index 2fe97ec89e814059083b7a65238db3b4fcb443f4..0fdd49ea4482a749083f99ca4ba801142c40a98a 100755 (executable)
@@ -12,7 +12,6 @@ use PVE::LXC::Config;
 use PVE::LXC::Tools;
 use PVE::LXC;
 use PVE::Network;
-use PVE::RESTEnvironment;
 use PVE::Storage;
 use PVE::Tools;
 
@@ -21,8 +20,6 @@ PVE::LXC::Tools::lxc_hook('post-stop', 'lxc', sub {
 
     return undef if ! -f PVE::LXC::Config->config_file($vmid);
 
-    PVE::RESTEnvironment->setup_default_cli_env();
-
     my $conf = PVE::LXC::Config->load_config($vmid);
 
     my $storage_cfg = PVE::Storage::config();
index 2911e1be7bb7587eb0e820a4cc3083efa3bc1cd8..0a76aee90ed36837dcda4a269d784427404b6889 100755 (executable)
@@ -15,7 +15,6 @@ use PVE::LXC::Config;
 use PVE::LXC::Setup;
 use PVE::LXC::Tools;
 use PVE::LXC;
-use PVE::RESTEnvironment;
 use PVE::SafeSyslog;
 use PVE::Storage;
 use PVE::Syscall qw(:fsmount);
@@ -40,8 +39,6 @@ PVE::LXC::Tools::lxc_hook('pre-start', 'lxc', sub {
 
     PVE::Cluster::check_cfs_quorum(); # only start if we have quorum
 
-    PVE::RESTEnvironment->setup_default_cli_env();
-
     return undef if ! -f PVE::LXC::Config->config_file($vmid);
 
     my $conf = PVE::LXC::Config->load_config($vmid);