Commit a5ffe14e authored by Tyler's avatar Tyler Committed by GitHub

fix: seperate vc service names (#654)

Address #653 

Adds 0-padding and indexes at 1 for vc_count.
parent 4272ff3e
......@@ -211,6 +211,9 @@ def launch_participant_network(
vc_type = participant.vc_type
index_str = shared_utils.zfill_custom(index + 1, len(str(len(participants))))
for sub_index in range(participant.vc_count):
vc_index_str = shared_utils.zfill_custom(
sub_index + 1, len(str(participant.vc_count))
)
el_context = all_el_contexts[index]
cl_context = all_cl_contexts[index]
......@@ -311,7 +314,7 @@ def launch_participant_network(
index_str,
cl_type,
vc_type,
"-" + str(sub_index) if participant.vc_count != 1 else "",
"-" + vc_index_str if participant.vc_count != 1 else "",
)
snooper_beacon_context = beacon_snooper.launch(
plan,
......@@ -331,14 +334,14 @@ def launch_participant_network(
el_type,
cl_type,
vc_type,
"-" + str(sub_index) if participant.vc_count != 1 else "",
"-" + vc_index_str if participant.vc_count != 1 else "",
)
if participant.cl_type != participant.vc_type
else "{0}-{1}-{2}{3}".format(
index_str,
el_type,
cl_type,
"-" + str(sub_index) if participant.vc_count != 1 else "",
"-" + vc_index_str if participant.vc_count != 1 else "",
)
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment