]> granicus.if.org Git - icinga2/commit
Ignore synced config zones where no config item exists 7120/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Fri, 28 Sep 2018 11:55:41 +0000 (13:55 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 15 Apr 2019 15:38:43 +0000 (17:38 +0200)
commit44d0c9013b4ac5298fbd69475af9807faa2bcad1
tree9459fee319173e291b01e127cb7b1bcd45760f2e
parente0d9814feb3359577c3adf7db10e51514adf0cb2
Ignore synced config zones where no config item exists

The culprit is that we're in compiling configuration stage here,
we don't have access to `Zone::GetByName()` as objects have not
been activated yet.

Our best guess is from a config item loaded before (e.g. from zones.conf)
since no-one can sync zones via cluster config sync either.

It may not be 100% correct since the zone object itself may be invalid.
Still, if the zone object validator fails later, the config breaks either way.

The problem with removal of these directories is dealt by the cluster
config sync with stages.

refs #6727
refs #6716
lib/cli/daemonutility.cpp