diff --git a/examples/python/create-rankfile.py b/examples/python/create-rankfile.py index b21e2ba595e6c0e067366617b25f7ed89ab94da3..171de331bc29bb0a79bd9e111a237d2a9e19256a 100644 --- a/examples/python/create-rankfile.py +++ b/examples/python/create-rankfile.py @@ -6,7 +6,7 @@ def generate_rankfile(hostfile_path): hosts = hostfile.readlines() num_hosts = len(hosts) ranks_per_host = 64 - for host_id, host in enumerate(hosts): + for host in enumerate(hosts): hostname = host.strip() for rank in range(ranks_per_host): rank_content = f"rank {rank_id}={hostname} slot=0-63"