mirror of https://github.com/Icinga/icinga2.git
parent
393a6bf641
commit
14d805e6fe
|
@ -128,8 +128,10 @@ 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);
|
||||||
|
|
||||||
|
if (object)
|
||||||
object->SetVersion(objVersion, false, origin);
|
object->SetVersion(objVersion, false, origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue