monitoring/commands: Throw `LogicException' if the remote host is not set in `RemoteCommandFile'

refs #6593
This commit is contained in:
Eric Lippmann 2014-08-29 15:36:11 +02:00
parent 6fdc436f65
commit 6324192127
1 changed files with 3 additions and 0 deletions

View File

@ -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"'),