pf-tools commit: r710 [ccaillet-guest] - in /branches/0.33-stable: debian/changelog lib/PFTools/Conf.pm

parmelan-guest at users.alioth.debian.org parmelan-guest at users.alioth.debian.org
Tue Jun 2 12:51:26 UTC 2009


Author: ccaillet-guest
Date: Tue Jun  2 12:51:26 2009
New Revision: 710

URL: http://svn.debian.org/wsvn/pf-tools/?sc=1&rev=710
Log:
* lib/PFTools/Conf.pm:
  - avoid potential undefined value with %POPNAME% and %HOSTNODEINDEX%

Modified:
    branches/0.33-stable/debian/changelog
    branches/0.33-stable/lib/PFTools/Conf.pm

Modified: branches/0.33-stable/debian/changelog
URL: http://svn.debian.org/wsvn/pf-tools/branches/0.33-stable/debian/changelog?rev=710&op=diff
==============================================================================
--- branches/0.33-stable/debian/changelog (original)
+++ branches/0.33-stable/debian/changelog Tue Jun  2 12:51:26 2009
@@ -26,8 +26,10 @@
     - adding %DISTRIB% var handler in PXE templates
   * lib/PFTools/Net.pm:
     - avoid ethtool setting in Mk_interface for tagged iface
-
- -- Christophe Caillet <tof at sitadelle.com>  Fri, 24 Apr 2009 12:18:13 +0200
+  * lib/PFTools/Conf.pm:
+    - avoid potential undefined value with %POPNAME% and %HOSTNODEINDEX%
+
+ -- Christophe Caillet <tof at sitadelle.com>  Tue, 02 Jun 2009 14:45:51 +0200
 
 pf-tools (0.33.17-1) unstable; urgency=low
 

Modified: branches/0.33-stable/lib/PFTools/Conf.pm
URL: http://svn.debian.org/wsvn/pf-tools/branches/0.33-stable/lib/PFTools/Conf.pm?rev=710&op=diff
==============================================================================
--- branches/0.33-stable/lib/PFTools/Conf.pm (original)
+++ branches/0.33-stable/lib/PFTools/Conf.pm Tue Jun  2 12:51:26 2009
@@ -115,8 +115,8 @@
 	$ref_subst->{'HOSTTYPE'}	= $1 ;
 	$ref_subst->{'HOSTDIGITS'}	= $5 ;
 	$ref_subst->{'HOSTCLUSTER'}	= $4.$5 ;
-	$ref_subst->{'HOSTNODEINDEX'}	= $6 ;
-	$ref_subst->{'POPNAME'}		= $3 ;
+	$ref_subst->{'HOSTNODEINDEX'}	= $6 || "" ;
+	$ref_subst->{'POPNAME'}		= $3 || "" ;
 	$ref_subst->{'HOSTNUM'}		= $ref_subst->{'HOSTDIGITS'} ;
 	$ref_subst->{'HOSTNUM'}		=~ s/^0*// ;
 	if ( $ref_subst->{'HOSTNUM'} eq "" ) {




More information about the pf-tools-commits mailing list