Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-ISC-DHCPd CPAN distribution.

Report information
The Basics
Id: 49694
Status: resolved
Priority: 0/
Queue: Net-ISC-DHCPd

People
Owner: Nobody in particular
Requestors: NITO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.02
Fixed in: (no value)



Subject: Problem in generate when in a host section a "filename "pxelinux.0";" entry exists
If you try to parse an entry like: host nacarhost001 { hardware ethernet 00:1e:c9:50:4f:98; fixed-address 172.30.2.1; next-server 172.30.0.65; filename "pxelinux.0"; option host-name "nacarhost001"; } If you parse this entry as my $d = Net::ISC::DHCPd::Config->new(file=>'/home/nito/tmp/dhcpd.nacarhost.conf'); $d->parse; $d->generate(); you get an error like this. Can't locate object method "name" via package "Net::ISC::DHCPd::Config::Filename" at /usr/local/share/perl/5.10.0/Net/ISC/DHCPd/Config/Filename.pm line 58, <$FH> line 16. I have been looking into the code and I think that this change would fix it. --- /usr/local/share/perl/5.10.0/Net/ISC/DHCPd/Config/Filename.pm.orig 2009-09-14 18:48:48.000000000 +0200 +++ /usr/local/share/perl/5.10.0/Net/ISC/DHCPd/Config/Filename.pm 2009-09-14 18:49:08.000000000 +0200 @@ -55,7 +55,7 @@ =cut sub generate { - return sprintf q(filename %s;), shift->name; + return sprintf q(filename %s;), shift->file; } =head1 AUTHOR This would help me to automatically provision the module from CPAN.
Subject: Re: [rt.cpan.org #49694] Problem in generate when in a host section a "filename "pxelinux.0";" entry exists
Date: Tue, 22 Sep 2009 00:17:53 +0200
To: bug-Net-ISC-DHCPd [...] rt.cpan.org
From: Jan Henning Thorsen <jhthorsen [...] cpan.org>
Thanks for the bug report! I've just uploaded a new release to pause, with your name on the bugfix... Best regards, Jan Henning On Mon, Sep 14, 2009 at 6:57 PM, Nito Martinez via RT <bug-Net-ISC-DHCPd@rt.cpan.org> wrote: Show quoted text
> Mon Sep 14 12:57:17 2009: Request 49694 was acted upon. > Transaction: Ticket created by NITO >       Queue: Net-ISC-DHCPd >     Subject: Problem in generate when in a host section a "filename >  "pxelinux.0";" entry exists >   Broken in: 0.02 >    Severity: Important >       Owner: Nobody >  Requestors: NITO@cpan.org >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49694 > > > > If you try to parse an entry like: > >  host nacarhost001 { >    hardware ethernet 00:1e:c9:50:4f:98; >    fixed-address 172.30.2.1; >    next-server 172.30.0.65; >    filename "pxelinux.0"; >    option host-name "nacarhost001"; >  } > > If you parse this entry as > >  my $d = > Net::ISC::DHCPd::Config->new(file=>'/home/nito/tmp/dhcpd.nacarhost.conf'); >  $d->parse; >  $d->generate(); > > you get an error like this. > >  Can't locate object method "name" via package > "Net::ISC::DHCPd::Config::Filename" at > /usr/local/share/perl/5.10.0/Net/ISC/DHCPd/Config/Filename.pm line 58, > <$FH> line 16. > > > I have been looking into the code and I think that this change would fix it. > > --- /usr/local/share/perl/5.10.0/Net/ISC/DHCPd/Config/Filename.pm.orig > 2009-09-14 18:48:48.000000000 +0200 > +++ /usr/local/share/perl/5.10.0/Net/ISC/DHCPd/Config/Filename.pm > 2009-09-14 18:49:08.000000000 +0200 > @@ -55,7 +55,7 @@ >  =cut > >  sub generate { > -    return sprintf q(filename %s;), shift->name; > +    return sprintf q(filename %s;), shift->file; >  } > >  =head1 AUTHOR > > > This would help me to automatically provision the module from CPAN. >