[Resmon-devel] [resmon commit] r159 - trunk/lib/Resmon

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Mon Mar 9 17:44:36 EDT 2009


Author: mark
Date: 2009-03-09 17:44:36 -0400 (Mon, 09 Mar 2009)
New Revision: 159

Modified:
   trunk/lib/Resmon/Config.pm
Log:
Allow multi word arguments in the resmon.conf file

Modified: trunk/lib/Resmon/Config.pm
===================================================================
--- trunk/lib/Resmon/Config.pm	2009-03-09 21:39:53 UTC (rev 158)
+++ trunk/lib/Resmon/Config.pm	2009-03-09 21:44:36 UTC (rev 159)
@@ -25,7 +25,7 @@
 	$kvs{'type'} = $current;
         $kvs{'object'} = $1;
 	my @params = split(/,/, $2);
-	grep { $kvs{$1} = $2 if /^\s*(\S+)\s*=>\s*(\S+)\s*$/ } @params;
+	grep { $kvs{$1} = $2 if /^\s*(\S+)\s*=>\s*(\S.+\S)\s*$/ } @params;
         my $object = bless \%kvs, "Resmon::Module::$current";
         push(@{$self->{Module}->{$current}}, $object);
 



More information about the Resmon-devel mailing list