Skip Menu |
 

This queue is for tickets about the Helios CPAN distribution.

Report information
The Basics
Id: 78616
Status: resolved
Priority: 0/
Queue: Helios

People
Owner: LAJANDY [...] cpan.org
Requestors: LAJANDY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 2.50_2860
  • 2.50_2910
  • 2.50_3040
Fixed in: 2.50_3220



Subject: Cannot specify a config file with Helios::Config
Download (untitled) / with headers
text/plain 899b
Helios::Config in 2.50_2860 and above does not work if you do not have the HELIOS_INI environment variable set and instead try to specify an configuration file in a program. For example: use Data::Dumper; use Helios::Config; Helios::Config->init(CONF_FILE => '/etc/helios/helios.ini'); my $conf = Helios::Config->parseConfig(); print Dumper($conf),"\n"; should at least dump a hashref of the [global] params in /etc/helios/helios.ini to the terminal, but it dies with: No conf file specified at /usr/lib/perl5/site_perl/5.8.8/Helios/Config.pm line 192. though obviously a conf file *was* specified. Interestingly, explicitly setting the conf file *without calling init()* actually works: use Data::Dumper; use Helios::Config; Helios::Config->setConfFile('/etc/helios/helios.ini'); my $conf = Helios::Config->parseConfig(); print Dumper($conf),"\n"; So the problem is with the init() method.
Fixed in the latest 2.50 version.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.