pvestatd: use 'priv' environment for service

This commit is contained in:
Dietmar Maurer 2015-11-25 08:03:25 +01:00
parent 8abeb80352
commit 8bc011d4f1

View File

@ -8,7 +8,7 @@ use PVE::RPCEnvironment;
use PVE::Service::pvestatd;
my $prepare = sub {
my $rpcenv = PVE::RPCEnvironment->init('cli');
my $rpcenv = PVE::RPCEnvironment->init('priv');
$rpcenv->init_request();
$rpcenv->set_language($ENV{LANG});