Merge pull request #288 from Icinga/customvar-runtime-updates

Add custom vars to the runtime update sync
This commit is contained in:
Eric Lippmann 2021-05-31 15:31:04 +02:00 committed by GitHub
commit 3dcca21135
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,9 @@ func run() int {
logger.Infof("Starting runtime updates sync")
return rt.Sync(synctx, v1.Factories, lastRuntimeStreamId)
// @TODO(el): The customvar runtime update sync may change because the customvar flat
// runtime update sync is not yet implemented.
return rt.Sync(synctx, append(v1.Factories, v1.NewCustomvar), lastRuntimeStreamId)
})
if err := g.Wait(); err != nil && !utils.IsContextCanceled(err) {