hey, we have a working fooker...
authorpaulr <me@pjr.cc>
Mon, 12 Jul 2010 04:01:07 +0000 (14:01 +1000)
committerpaulr <me@pjr.cc>
Mon, 12 Jul 2010 04:01:07 +0000 (14:01 +1000)
bin/pbdc-bacula.php

index c86a4bc..b136d05 100644 (file)
@@ -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");