def get_bucket(b):
    bucket = b['bucket']
    if bucket.startswith('master.'):
        return bucket[len('master.'):]
    return bucket
def get_bucket(b):
    bucket = b['bucket']
    if bucket.startswith('master.'):
        return bucket[len('master.'):]
    return bucket