mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Fix that sending multiple commands over SSH failed
The config object has to cloned before unsetting the transport because else the transport is removed for all subsequent calls to CommandTransport::fromConfig(). fixes #8815
This commit is contained in:
parent
5745c1fec4
commit
06d9e4113c
@ -51,6 +51,7 @@ abstract class CommandTransport
|
|||||||
*/
|
*/
|
||||||
public static function fromConfig(ConfigObject $config)
|
public static function fromConfig(ConfigObject $config)
|
||||||
{
|
{
|
||||||
|
$config = clone $config;
|
||||||
switch (strtolower($config->transport)) {
|
switch (strtolower($config->transport)) {
|
||||||
case RemoteCommandFile::TRANSPORT:
|
case RemoteCommandFile::TRANSPORT:
|
||||||
$transport = new RemoteCommandFile();
|
$transport = new RemoteCommandFile();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user