We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a128da commit e7d5255Copy full SHA for e7d5255
src/codeflare_sdk/utils/generate_yaml.py
@@ -619,6 +619,11 @@ def _create_oauth_sidecar_object(
619
620
621
def write_components(user_yaml: dict, output_file_name: str):
622
+ # Create the directory if it doesn't exist
623
+ directory_path = os.path.dirname(output_file_name)
624
+ if not os.path.exists(directory_path):
625
+ os.makedirs(directory_path)
626
+
627
components = user_yaml.get("spec", "resources")["resources"].get("GenericItems")
628
open(output_file_name, "w").close()
629
with open(output_file_name, "a") as outfile:
0 commit comments