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

Stoiko Ivanov s.ivanov at proxmox.com
Mon Jul 3 11:13:36 CEST 2023


On Mon, 3 Jul 2023 11:05:05 +0200
Fiona Ebner <f.ebner at proxmox.com> wrote:

> 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?
Thanks for noticing! I'll go with Dominik's fix for the issue :)

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





More information about the pmg-devel mailing list