[icinga-checkins] icinga.org: icingaweb2-module-director/master: JobsCommand: support standalone 'forever' as...

git at icinga.org git at icinga.org
Wed Jul 20 17:42:58 CEST 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Jul 20 17:42:33 2016 +0200

JobsCommand: support standalone 'forever' as...

...shown in the documentation

---

 application/clicommands/JobsCommand.php |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/application/clicommands/JobsCommand.php b/application/clicommands/JobsCommand.php
index 567e688..39f7150 100644
--- a/application/clicommands/JobsCommand.php
+++ b/application/clicommands/JobsCommand.php
@@ -19,6 +19,11 @@ class JobsCommand extends Command
     public function runAction()
     {
         $forever = $this->params->shift('forever');
+        if (! $forever && $this->params->getStandalone() === 'forever') {
+            $forever = true;
+            $this->params->shift();
+        }
+
         $jobId = $this->params->shift();
         if ($jobId) {
             $job = DirectorJob::load($jobId, $this->db());



More information about the icinga-checkins mailing list