Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Use API 2 with compact mode enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Bergkemper <frank.bergkemper@dass-it.de>
  • Loading branch information
fbergkemper committed Nov 18, 2015
1 parent f77ef94 commit cf0f92f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vendor/Bareos/library/Bareos/BSock/BareosBSock.php
Expand Up @@ -850,7 +850,8 @@ public function send_command($cmd, $api=0, $jobid=null)

switch($api) {
case 2:
self::send(".api 2");
// Enable api 2 with compact mode enabled
self::send(".api 2 compact=yes");
try {
$debug = self::receive_message();
if(!preg_match('/result/', $debug)) {
Expand Down

0 comments on commit cf0f92f

Please sign in to comment.