From 9f155ea99d9126f9d90e5fa9b74fda2bbbeffb38 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 28 May 2015 16:33:35 +0200 Subject: [PATCH] monitoring: Don't show SSH command when transporting a command to a remote command file failed refs #8006 --- .../library/Monitoring/Command/Transport/RemoteCommandFile.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php b/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php index 866497a5a..c0f670bfe 100644 --- a/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php +++ b/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php @@ -201,8 +201,7 @@ class RemoteCommandFile implements CommandTransportInterface exec($ssh, $output, $status); if ($status !== 0) { throw new TransportException( - 'Can\'t send external Icinga command "%s": %s', - $ssh, + 'Can\'t send external Icinga command: %s', implode(' ', $output) ); }