mirror of https://github.com/Icinga/icinga2.git
Keep consistency with other methods in case of missing API listener
This commit is contained in:
parent
edb5c47a9d
commit
064d5e9194
|
@ -946,7 +946,7 @@ Value ClusterEvents::ExecutedCommandAPIHandler(const MessageOrigin::Ptr& origin,
|
|||
{
|
||||
ApiListener::Ptr listener = ApiListener::GetInstance();
|
||||
if (!listener)
|
||||
BOOST_THROW_EXCEPTION(std::invalid_argument("No ApiListener instance configured."));
|
||||
return Empty;
|
||||
|
||||
Endpoint::Ptr endpoint;
|
||||
if (origin->FromClient) {
|
||||
|
|
Loading…
Reference in New Issue