File tree 1 file changed +1
-3
lines changed
src/codeflare_sdk/cluster
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ def _component_resources_up(
546
546
):
547
547
if self .config .write_to_file :
548
548
with open (self .app_wrapper_yaml ) as f :
549
- yamls = yaml .load_all (f , Loader = yaml .FullLoader )
549
+ yamls = list ( yaml .load_all (f , Loader = yaml .FullLoader ) )
550
550
for resource in yamls :
551
551
enable_ingress = (
552
552
resource .get ("spec" , {})
@@ -559,8 +559,6 @@ def _component_resources_up(
559
559
f"Forbidden: RayCluster '{ name } ' has 'enableIngress' set to 'True' or is unset."
560
560
)
561
561
return
562
- f .seek (0 ) # Reset file pointer to the beginning
563
- yamls = yaml .load_all (f , Loader = yaml .FullLoader ) # Reload the YAMLs
564
562
_create_resources (yamls , namespace , api_instance )
565
563
else :
566
564
yamls = yaml .load_all (self .app_wrapper_yaml , Loader = yaml .FullLoader )
You can’t perform that action at this time.
0 commit comments