mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
monitoring/commands: Throw LogicException' if the remote host is not set in
RemoteCommandFile'
refs #6593
This commit is contained in:
parent
6fdc436f65
commit
6324192127
@ -153,6 +153,9 @@ class RemoteCommandFile implements CommandTransportInterface
|
|||||||
if (! isset($this->path)) {
|
if (! isset($this->path)) {
|
||||||
throw new LogicException;
|
throw new LogicException;
|
||||||
}
|
}
|
||||||
|
if (! isset($this->host)) {
|
||||||
|
throw new LogicException;
|
||||||
|
}
|
||||||
Logger::debug(
|
Logger::debug(
|
||||||
sprintf(
|
sprintf(
|
||||||
mt('monitoring', 'Sending external Icinga command "%s" to the remote command file "%s:%u%s"'),
|
mt('monitoring', 'Sending external Icinga command "%s" to the remote command file "%s:%u%s"'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user