From: paulr Date: Mon, 12 Jul 2010 04:01:07 +0000 (+1000) Subject: hey, we have a working fooker... X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=dcdc0b27ddd98a5bbe2c8b5d0f3576b7b9065e5c;p=php-bacula-disk-changer.git hey, we have a working fooker... --- diff --git a/bin/pbdc-bacula.php b/bin/pbdc-bacula.php index c86a4bc..b136d05 100644 --- a/bin/pbdc-bacula.php +++ b/bin/pbdc-bacula.php @@ -156,9 +156,9 @@ function list_tapes() } $tn = "$amloc/".$dn."/pbdc/".$argv[1]."/tapes/$tapename"; if(file_exists($tn)) { - echo "slot $sn: $tapename\n"; + echo "$sn:$tapename\n"; } else { - echo "slot $sn:\n"; + echo "$sn:\n"; } } @@ -178,7 +178,8 @@ function num_slots() $mslot = $row[0]; } - return $mslot; + echo "$mslot\n"; + return; // $amloc = conf_getVal($changer, "automountdir");