Fix job file creation: use t1_count for t2_count to avoid NoneType * int
Made-with: Cursormain
parent
81cf55f2e7
commit
c1b0ad73ca
|
|
@ -115,7 +115,7 @@ def create_job_file_for_project(
|
||||||
return None
|
return None
|
||||||
|
|
||||||
t1_count = tier1_count if tier1_count is not None else random.randint(10, 12)
|
t1_count = tier1_count if tier1_count is not None else random.randint(10, 12)
|
||||||
t2_count = (tier1_count * 2) + random.randint(1, 12)
|
t2_count = (t1_count * 2) + random.randint(1, 12)
|
||||||
if random_deployment_targets is not None:
|
if random_deployment_targets is not None:
|
||||||
num_targets = min(random_deployment_targets, len(available_domains))
|
num_targets = min(random_deployment_targets, len(available_domains))
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue