]> git.proxmox.com Git - pve-container.git/blobdiff - src/lxc-pve-poststop-hook
Revert "lxc-pve-{prestart, poststop}-hook: initialize RESTEnvironment"
[pve-container.git] / src / lxc-pve-poststop-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();