otherwise this fails when verifying the API in a clean build
environment, where no private key exists.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
my $rpcenv = PMG::RESTEnvironment->get();
-my $ticket = PMG::Ticket::assemble_ticket('root@pam');
-
my $logid = $ENV{PVE_LOG_ID} || 'pmgsh';
initlog($logid);
$rpcenv->init_request();
+ my $ticket = PMG::Ticket::assemble_ticket('root@pam');
+
$rpcenv->set_ticket($ticket);
$rpcenv->set_user('root@pam');
$rpcenv->set_role('root');