migrations: lvm autoactivation: setup CLI environment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2025-07-11 13:52:49 +02:00
parent dab5bbb371
commit 98188b1ae8

View file

@ -7,6 +7,8 @@ use Getopt::Long;
use Term::ANSIColor;
use PVE::CLI::pve8to9;
use PVE::RPCEnvironment;
use PVE::Tools qw(run_command);
my $is_tty = (-t STDOUT);
@ -42,6 +44,8 @@ sub main {
exit(-1);
}
PVE::RPCEnvironment->setup_default_cli_env();
my $cfg = PVE::Storage::config();
my $storage_info = PVE::Storage::storage_info($cfg);