Path is not a context manager in python 3.13 (#971)

Reviewed-on: cerc-io/stack-orchestrator#971
Reviewed-by: rachmaninovquar <rachmaninovquar@noreply.git.vdb.to>
This commit is contained in:
roysc committed 2025-10-16 17:55:44 +00:00
1 parent 0e814bd4da
commit 34f3b719e4
4 files changed
+6 -11

No files matched your search

+2 -3
View File
@@ -92,9 +92,8 @@ class Spec:
return self.obj.get(item, default)
def init_from_file(self, file_path: Path):
with file_path:
self.obj = get_yaml().load(open(file_path, "r"))
self.file_path = file_path
self.obj = get_yaml().load(open(file_path, "r"))
self.file_path = file_path
def get_image_registry(self):
return self.obj.get(constants.image_registry_key)