From: Jameson Rollins Date: Fri, 31 Dec 2010 06:39:17 +0000 (-0500) Subject: return 100 from msva-query-agent if unable to contact msva X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d59282ca436aa6f53d2d6195439ef3910856ec22;p=monkeysphere-validation-agent.git return 100 from msva-query-agent if unable to contact msva --- diff --git a/msva-query-agent b/msva-query-agent index be08531..7383db5 100755 --- a/msva-query-agent +++ b/msva-query-agent @@ -74,10 +74,15 @@ if (defined $ret) { $client->log('info', "valid: %s\n", $ret->{valid}); $client->log('info', "server: %s\n", $ret->{server}); printf("%s", $ret->{message}); - exit 0 - if ($ret->{valid}); + if ($ret->{valid}) { + exit 0 + } else { + exit 1; + } +} else { + printf("%s", $status); + exit 100; } -exit 1; __END__