[icinga-checkins] icinga.org: icingaweb2-module-director/master: SyncRule: Allow disabling purge

git at icinga.org git at icinga.org
Tue Jul 26 14:04:12 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 73b1863e1ab867d08318e9cbc46fe46080798891
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=73b1863e1ab867d08318e9cbc46fe46080798891

Author: Markus Frosch <lazyfrosch at icinga.org>
Date:   Fri Jul 22 13:55:32 2016 +0200

SyncRule: Allow disabling purge

---

 library/Director/Objects/SyncRule.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Director/Objects/SyncRule.php b/library/Director/Objects/SyncRule.php
index ca315f1..7193d80 100644
--- a/library/Director/Objects/SyncRule.php
+++ b/library/Director/Objects/SyncRule.php
@@ -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);



More information about the icinga-checkins mailing list