diff options
author | ivan <ivan> | 2009-09-28 22:45:13 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-09-28 22:45:13 +0000 |
commit | 6b89c9cf7abe900811cac333fa7133f1be0af488 (patch) | |
tree | 3601f565e93b4ff1a5023e3c2e2fa25bd089d7eb /FS | |
parent | 6bef62b1c736c51225505143e0f02e6e93aef768 (diff) |
more accurate SG check, RT#4610
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Cron/check.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/Cron/check.pm b/FS/FS/Cron/check.pm index a7903cec4..f38cb5f6b 100644 --- a/FS/FS/Cron/check.pm +++ b/FS/FS/Cron/check.pm @@ -60,7 +60,8 @@ sub check_sg { 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; |