From dcdc0b27ddd98a5bbe2c8b5d0f3576b7b9065e5c Mon Sep 17 00:00:00 2001 From: paulr Date: Mon, 12 Jul 2010 14:01:07 +1000 Subject: [PATCH] hey, we have a working fooker... --- bin/pbdc-bacula.php | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) 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"); -- 1.7.0.4