parser.add_argument("-n", "--nodo", dest="nodo",
default=False, action="store_true",
help="Print to cat rather than bconsole.")
+parser.add_argument("-t", "--token", metavar='TOKEN', dest="pool_name_token",
+ default='bacula',
+ help="A string token used in pool names.")
args = parser.parse_args()
if args.db is not None:
for r in cursor.fetchall():
poolname = r['name']
- match = re.match('pool[a-z]*-debian-(.*)', poolname)
+ match = re.match('pool[a-z]*-%s-(.*)'%(args.pool_name_token, ), poolname)
if match is not None:
hostname = match.group(1)
if hostname not in clients: