[Nagiosplug-checkins] SF.net SVN: nagiosplug: [1828] Nagios-Plugin/trunk
dermoth at users.sourceforge.net
dermoth at users.sourceforge.net
Sat Nov 17 07:36:24 CET 2007
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.
More information about the Commits
mailing list