mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +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();
|
ApiListener::Ptr listener = ApiListener::GetInstance();
|
||||||
if (!listener)
|
if (!listener)
|
||||||
BOOST_THROW_EXCEPTION(std::invalid_argument("No ApiListener instance configured."));
|
return Empty;
|
||||||
|
|
||||||
Endpoint::Ptr endpoint;
|
Endpoint::Ptr endpoint;
|
||||||
if (origin->FromClient) {
|
if (origin->FromClient) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user