[pmg-devel] [PATCH pmg-api] fix #4815: pmgsh: declare rpcenv on top

Fiona Ebner f.ebner at proxmox.com
Mon Jul 3 11:05:05 CEST 2023


Am 03.07.23 um 10:48 schrieb Stoiko Ivanov:
>  
> -# only set up once actually required allows calling verifyapi in restriced clean sbuild env
> -PMG::RESTEnvironment->setup_default_cli_env();
> -my $rpcenv = PMG::RESTEnvironment->get();
> -initlog($ENV{PVE_LOG_ID} || 'pmgsh');
> -

Now it's not initialized for the case when no command is specified, i.e.
when entering the PMG shell?

>  print "entering PMG shell - type 'help' for help\n";
>  
>  my $term = new Term::ReadLine('pmgsh');




More information about the pmg-devel mailing list