[Resmon-devel] FRESHSVN.pm - don't hardcode username and password

viq viq at viq.ath.cx
Fri Feb 12 16:57:27 EST 2010


I guess could be done smarter, accepting username and password from the
config... But here's a quick fix.
-- 
viq


Index: lib/Resmon/Module/FRESHSVN.pm
===================================================================
--- lib/Resmon/Module/FRESHSVN.pm	(revision 235)
+++ lib/Resmon/Module/FRESHSVN.pm	(working copy)
@@ -26,7 +26,7 @@
     elsif (/^Revision:\s*(\d+)/) { $mr = $1; }
   }
   return ("BAD(wrong URL, in conf:".$arg->{'URL'}.", checked out: $URL)") if ($URL ne $arg->{'URL'});
-  my $uoutput = cache_command("$svn info --username svnsync --password Athi3izo  --no-auth-cache --non-interactive $URL", 60);
+  my $uoutput = cache_command("$svn info  --no-auth-cache --non-interactive $URL", 60);
   my @ulines = split (/\n/,$uoutput);
   my ($ur);
   for(@ulines) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.omniti.com/pipermail/resmon-devel/attachments/20100212/a170a014/attachment.bin 


More information about the Resmon-devel mailing list