hey, we have a working fooker...
[php-bacula-disk-changer.git] / 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");