msva-query-agent will now only append a newline to the msva return
message on stdout if there is a TTY. This allows calling processes
that would like to capture the stdout to not have to deal with the
newline, which is not actually a part of the original message anyway.
if (defined $ret) {
$client->log('info', "valid: %s\n", $ret->{valid});
$client->log('info', "server: %s\n", $ret->{server});
- printf("%s\n", $ret->{message});
+ printf("%s", $ret->{message});
+ printf("\n") if (-t STDOUT);
exit 0
if ($ret->{valid});
}