migrations: lvm autoactivation: setup CLI environment
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
dab5bbb371
commit
98188b1ae8
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue