mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user