[icinga-checkins] icinga.org: icingaweb2/feature/remote-command-pipe-errorhandling-11848: RemoteCommandFile: multiple command submission...

git at icinga.org git at icinga.org
Fri May 27 17:57:10 CEST 2016


Module: icingaweb2
Branch: feature/remote-command-pipe-errorhandling-11848
Commit: 72c34d1aea98ad4713fdf4ba22dc99ca3162433f
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=72c34d1aea98ad4713fdf4ba22dc99ca3162433f

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri May 27 17:56:32 2016 +0200

RemoteCommandFile: multiple command submission...

...got forgotten when testing the feature

---

 .../library/Monitoring/Command/Transport/RemoteCommandFile.php       |    2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php b/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php
index 0e4689a..81b5064 100644
--- a/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php
+++ b/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php
@@ -322,8 +322,6 @@ class RemoteCommandFile implements CommandTransportInterface
     {
         if ($this->sshIsAlive()) {
             $ret = fwrite($this->pipes[0], $commandString . "\n");
-            $ret = fwrite($this->pipes[0], $commandString . "\n");
-            $ret = fwrite($this->pipes[0], $commandString . "\n");
             if ($ret === false) {
                 $this->throwSshFailure('Cannot write to remote command pipe');
             } elseif ($ret !== strlen($commandString) + 1) {



More information about the icinga-checkins mailing list