Fix stack path check (#877)

Reviewed-on: cerc-io/stack-orchestrator#877
Co-authored-by: David Boreham <david@bozemanpass.com>
Co-committed-by: David Boreham <david@bozemanpass.com>
This commit is contained in:
2024-07-19 17:16:40 +00:00
committed by dboreham
parent 83397bbae4
commit c81fb9581a
2 changed files with 28 additions and 5 deletions
+4 -1
View File
@@ -197,7 +197,10 @@ def stack_is_external(stack: str):
def stack_is_in_deployment(stack: Path):
return stack.joinpath(deployment_file_name).exists()
if isinstance(stack, os.PathLike):
return stack.joinpath(deployment_file_name).exists()
else:
return False
def get_yaml():