Skip to content

Commit b4f19db

Browse files
removing unncessary for loop
1 parent 5bbadde commit b4f19db

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

src/codeflare_sdk/utils/generate_yaml.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -478,22 +478,9 @@ def disable_raycluster_tls(resources):
478478
"containers"
479479
][0]["volumeMounts"]
480480

481-
for i in range(
482-
len(
483-
generic_template_spec["workerGroupSpecs"][0]["template"]["spec"][
484-
"initContainers"
485-
]
486-
)
487-
):
488-
if (
489-
generic_template_spec["workerGroupSpecs"][0]["template"]["spec"][
490-
"initContainers"
491-
][i]["name"]
492-
== "create-cert"
493-
):
494-
del generic_template_spec["workerGroupSpecs"][0]["template"]["spec"][
495-
"initContainers"
496-
]
481+
del generic_template_spec["workerGroupSpecs"][0]["template"]["spec"][
482+
"initContainers"
483+
]
497484

498485
updated_items = []
499486
for i in resources["GenericItems"][:]:

0 commit comments

Comments
 (0)