From d59282ca436aa6f53d2d6195439ef3910856ec22 Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Fri, 31 Dec 2010 01:39:17 -0500 Subject: [PATCH] return 100 from msva-query-agent if unable to contact msva --- msva-query-agent | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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__ -- 2.26.2