[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaConfigRenderer(Legacy ): Update classes for interface change

git at icinga.org git at icinga.org
Thu Nov 3 14:23:26 CET 2016


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

Author: Markus Frosch <markus.frosch at icinga.com>
Date:   Fri Oct 14 15:40:48 2016 +0200

IcingaConfigRenderer(Legacy): Update classes for interface change

refs #12919

---

 library/Director/IcingaConfig/IcingaConfigRendered.php |    5 +++++
 library/Director/Objects/IcingaArguments.php           |    5 +++++
 2 files changed, 10 insertions(+)

diff --git a/library/Director/IcingaConfig/IcingaConfigRendered.php b/library/Director/IcingaConfig/IcingaConfigRendered.php
index 39580b6..1064964 100644
--- a/library/Director/IcingaConfig/IcingaConfigRendered.php
+++ b/library/Director/IcingaConfig/IcingaConfigRendered.php
@@ -26,4 +26,9 @@ class IcingaConfigRendered implements IcingaConfigRenderer
     {
         return $this->toConfigString();
     }
+
+    public function toLegacyConfigString()
+    {
+        return $this->rendered;
+    }
 }
diff --git a/library/Director/Objects/IcingaArguments.php b/library/Director/Objects/IcingaArguments.php
index 9a5ed77..bf9d5cf 100644
--- a/library/Director/Objects/IcingaArguments.php
+++ b/library/Director/Objects/IcingaArguments.php
@@ -393,4 +393,9 @@ class IcingaArguments implements Iterator, Countable, IcingaConfigRenderer
             }
         }
     }
+
+    public function toLegacyConfigString()
+    {
+        return 'UNSUPPORTED';
+    }
 }



More information about the icinga-checkins mailing list