[icinga-checkins] icinga.org: icingaweb2-module-director/fiddle/mfrosch-2: WIP: Allow to sync templates

git at icinga.org git at icinga.org
Fri Jul 22 12:03:50 CEST 2016


Module: icingaweb2-module-director
Branch: fiddle/mfrosch-2
Commit: f61ee68e4cae14856f4417d15e101d191c1bd13c
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=f61ee68e4cae14856f4417d15e101d191c1bd13c

Author: Markus Frosch <lazyfrosch at icinga.org>
Date:   Thu Jul 14 15:58:11 2016 +0200

WIP: Allow to sync templates

---

 library/Director/Import/Sync.php |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/library/Director/Import/Sync.php b/library/Director/Import/Sync.php
index b8eaafc..ba62c7a 100644
--- a/library/Director/Import/Sync.php
+++ b/library/Director/Import/Sync.php
@@ -552,6 +552,7 @@ class Sync
             $modified = 0;
             $deleted = 0;
             foreach ($objects as $object) {
+                /* TODO: allow template sync
                 if ($object instanceof IcingaObject && $object->isTemplate()) {
                     // TODO: allow to sync templates
                     if ($object->hasBeenModified()) {
@@ -562,6 +563,7 @@ class Sync
                     }
                     continue;
                 }
+                */
 
                 if ($object instanceof IcingaObject && $object->shouldBeRemoved()) {
                     $object->delete($db);



More information about the icinga-checkins mailing list