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

git at icinga.org git at icinga.org
Thu Jul 14 16:18:45 CEST 2016


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

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 87d7098..bdd7726 100644
--- a/library/Director/Import/Sync.php
+++ b/library/Director/Import/Sync.php
@@ -695,6 +695,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()) {
@@ -705,6 +706,7 @@ class Sync
                     }
                     continue;
                 }
+                */
 
                 if ($object instanceof IcingaObject && $object->shouldBeRemoved()) {
                     $object->delete($db);



More information about the icinga-checkins mailing list