forked from cerc-io/stack-orchestrator
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:
1 parent
0e814bd4da
commit
34f3b719e4
4 files changed
+6
-11
No files matched your search
@@ -180,9 +180,7 @@ def get_k8s_dir():
|
||||
def get_parsed_deployment_spec(spec_file):
|
||||
spec_file_path = Path(spec_file)
|
||||
try:
|
||||
with spec_file_path:
|
||||
deploy_spec = get_yaml().load(open(spec_file_path, "r"))
|
||||
return deploy_spec
|
||||
return get_yaml().load(open(spec_file_path, "r"))
|
||||
except FileNotFoundError as error:
|
||||
# We try here to generate a useful diagnostic error
|
||||
print(f"Error: spec file: {spec_file_path} does not exist")
|
||||
|
||||
Reference in new issue
Block a user