mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-14 17:24:35 +02:00
ApiListener: Bail out if object could not be created during config sync
refs #11006
This commit is contained in:
parent
15a2b716c0
commit
c8a9f45697
@ -128,11 +128,13 @@ Value ApiListener::ConfigUpdateObjectAPIHandler(const MessageOrigin::Ptr& origin
|
|||||||
return Empty;
|
return Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* object was created, update its version */
|
|
||||||
object = dtype->GetObject(objName);
|
object = dtype->GetObject(objName);
|
||||||
|
|
||||||
if (object)
|
if (!object)
|
||||||
object->SetVersion(objVersion, false, origin);
|
return Empty;
|
||||||
|
|
||||||
|
/* object was created, update its version */
|
||||||
|
object->SetVersion(objVersion, false, origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!object)
|
if (!object)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user