mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-03-08 04:58:26 +03:00
add setup_environment hook to CLIHandler classes
This commit is contained in:
parent
9009150b81
commit
5e4035c739
@ -34,6 +34,10 @@ my $upid_exit = sub {
|
||||
|
||||
my $nodename = PVE::INotify::nodename();
|
||||
|
||||
sub setup_environment {
|
||||
PVE::RPCEnvironment->setup_default_cli_env();
|
||||
}
|
||||
|
||||
sub run_vnc_proxy {
|
||||
my ($path) = @_;
|
||||
|
||||
|
@ -14,6 +14,10 @@ use PVE::API2::Qemu;
|
||||
|
||||
use base qw(PVE::CLIHandler);
|
||||
|
||||
sub setup_environment {
|
||||
PVE::RPCEnvironment->setup_default_cli_env();
|
||||
}
|
||||
|
||||
__PACKAGE__->register_method({
|
||||
name => 'qmrestore',
|
||||
path => 'qmrestore',
|
||||
|
Loading…
x
Reference in New Issue
Block a user