def get_latest_id(prefix, env):
    names = env.hosts_f
    last_id = -1
    for name in names:
        if name.startswith(prefix):
            i = int(name[len(prefix):].rstrip())
            if i > last_id:
                last_id = i
    return last_id
dataset/ETHPy150Open comodit/demos/ceph-cluster/helper.py/get_latest_id/original