[freeside-commits] freeside/FS/FS/Cron check.pm,1.2.2.9,1.2.2.10
Ivan,,,
ivan at wavetail.420.am
Mon Sep 28 15:45:17 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv17479
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.2.2.9
retrieving revision 1.2.2.10
diff -u -d -r1.2.2.9 -r1.2.2.10
--- check.pm 28 Sep 2009 22:35:36 -0000 1.2.2.9
+++ check.pm 28 Sep 2009 22:45:15 -0000 1.2.2.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