return 100 from msva-query-agent if unable to contact msva
authorJameson Rollins <jrollins@finestructure.net>
Fri, 31 Dec 2010 06:39:17 +0000 (01:39 -0500)
committerJameson Rollins <jrollins@finestructure.net>
Fri, 31 Dec 2010 06:39:17 +0000 (01:39 -0500)
msva-query-agent

index be085317199fec0cd5419a95dc1d209e69ce6aaf..7383db52c7d2654ecdb82e89ff745e2e9a8074a2 100755 (executable)
@@ -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__