SF.net SVN: nagiosplug: [1828] Nagios-Plugin/trunk

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
Revision: 1828
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1828&view=rev
Author:   dermoth
Date:     2007-11-16 22:36:24 -0800 (Fri, 16 Nov 2007)

Log Message:
-----------
Fixed handling of repeated ini arguments

Modified Paths:
--------------
    Nagios-Plugin/trunk/Changes
    Nagios-Plugin/trunk/lib/Nagios/Plugin/Config.pm

Modified: Nagios-Plugin/trunk/Changes
===================================================================
--- Nagios-Plugin/trunk/Changes	2007-11-11 16:29:05 UTC (rev 1827)
+++ Nagios-Plugin/trunk/Changes	2007-11-17 06:36:24 UTC (rev 1828)
@@ -1,5 +1,8 @@
 Revision history for Perl module Nagios::Plugin.
 
+0.22  ??th ??? 200?
+  - Fixed handling of repeated ini arguments
+
 0.21  24th September 2007
   - Help, usage and version output now goes to stdout, not stderr
 

Modified: Nagios-Plugin/trunk/lib/Nagios/Plugin/Config.pm
===================================================================
--- Nagios-Plugin/trunk/lib/Nagios/Plugin/Config.pm	2007-11-11 16:29:05 UTC (rev 1827)
+++ Nagios-Plugin/trunk/lib/Nagios/Plugin/Config.pm	2007-11-17 06:36:24 UTC (rev 1828)
@@ -72,9 +72,7 @@
 
                 # Handle properties
                 if ( /^\s*([^=]+?)\s*=\s*(.*?)\s*$/ ) {
-                        $self->{$ns}->{$1} = defined $self->{$ns}->{$1} ?
-                                [ $self->{$ns}->{$1}, $2 ] : 
-                                $2;
+			push @{$self->{$ns}->{$1}}, $2;
                         next;
                 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.