]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #10082 Add Queue RunsWhen to bdirjson
authorEric Bollengier <eric@baculasystems.com>
Mon, 24 Apr 2023 11:45:00 +0000 (13:45 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
bacula/src/dird/bdirjson.c

index f3f1607a5588cf8415aa7510580a0e4982eb8c27..9c54ee7040967c5f5cf9f069f70edfe4ffeebeff 100644 (file)
@@ -671,6 +671,9 @@ static bool display_runscript(HPKT &hpkt)
 
       } else if (script->when == SCRIPT_AtJobCompletion) {
          hpkt.sendit(hpkt, "        \"RunsWhen\": \"AtJobCompletion\",\n");
+
+      } else if (script->when == SCRIPT_Queued) {
+         hpkt.sendit(hpkt, "        \"RunsWhen\": \"Queued\",\n");
       }
 
       if (script->fail_on_error != def->fail_on_error) {