mirror of https://github.com/Icinga/icinga2.git
parent
393a6bf641
commit
14d805e6fe
|
@ -128,9 +128,11 @@ Value ApiListener::ConfigUpdateObjectAPIHandler(const MessageOrigin::Ptr& origin
|
||||||
return Empty;
|
return Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* object was created, update its version to its origin */
|
/* object was created, update its version */
|
||||||
object = dtype->GetObject(objName);
|
object = dtype->GetObject(objName);
|
||||||
object->SetVersion(objVersion, false, origin);
|
|
||||||
|
if (object)
|
||||||
|
object->SetVersion(objVersion, false, origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!object)
|
if (!object)
|
||||||
|
|
Loading…
Reference in New Issue