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
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 899
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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-9678-1345244736-1703.78616-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 33
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.