Commit 7a671aed authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

SSH: print error message in result' stderr for compatibility with

Centreon Engine. This fixes #5663.
parent 6f08d625
/*
** Copyright 2011-2013 Merethis
** Copyright 2011-2014 Merethis
**
** This file is part of Centreon SSH Connector.
**
......@@ -116,7 +116,7 @@ void policy::on_error(unsigned long long cmd_id, char const* msg) {
checks::result r;
r.set_command_id(cmd_id);
r.set_executed(false);
r.set_output(msg);
r.set_error(msg);
on_result(r);
}
else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment