[icinga-checkins] icinga.org: icingaweb2-module-director/master: JobHook: do not require isPending

git at icinga.org git at icinga.org
Wed May 25 12:28:14 CEST 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed May 25 11:40:19 2016 +0200

JobHook: do not require isPending

---

 library/Director/Hook/JobHook.php |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/library/Director/Hook/JobHook.php b/library/Director/Hook/JobHook.php
index f2366cf..fbed18a 100644
--- a/library/Director/Hook/JobHook.php
+++ b/library/Director/Hook/JobHook.php
@@ -16,7 +16,10 @@ abstract class JobHook
 
     abstract public function run();
 
-    abstract public function isPending();
+    public function isPending()
+    {
+        // TODO: Can be overridden, double-check whether this is necessary
+    }
 
     public function getName()
     {



More information about the icinga-checkins mailing list