[freeside-commits] freeside/FS/FS/Cron check.pm,1.9,1.10
Ivan,,,
ivan at wavetail.420.am
Mon Sep 28 15:45:16 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv17472
Modified Files:
check.pm
Log Message:
more accurate SG check, RT#4610
Index: check.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Cron/check.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- check.pm 28 Sep 2009 22:35:35 -0000 1.9
+++ check.pm 28 Sep 2009 22:45:13 -0000 1.10
@@ -60,7 +60,8 @@
my $res = $ua->request($req);
return 1 if $res->is_success
- && $res->content =~ /OK/;
+ && $res->content =~ /OK/
+ && $res->content !~ /error/i; #doh, the error message includes "OK"
$error_msg = $res->is_success ? $res->content : $res->status_line;
return 0;
More information about the freeside-commits
mailing list