mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
SyncRule: Allow disabling purge
This commit is contained in:
parent
eab8b5c9ba
commit
73b1863e1a
@ -235,7 +235,7 @@ class SyncRule extends DbObject
|
||||
// TODO: Allow for more
|
||||
protected function loadConfiguredPurgeStrategy()
|
||||
{
|
||||
if ($this->purge_existing) {
|
||||
if ($this->purge_existing === 'y') {
|
||||
return PurgeStrategy::load('ImportRunBased', $this);
|
||||
} else {
|
||||
return PurgeStrategy::load('PurgeNothing', $this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user