From f238078940dd1e07aa44ac8ac241a219227ce2b0 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Tue, 15 Oct 2024 15:58:20 +0800 Subject: [PATCH] type hint --- stack_orchestrator/deploy/deployment_create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack_orchestrator/deploy/deployment_create.py b/stack_orchestrator/deploy/deployment_create.py index c389b5c2..2ca1cc32 100644 --- a/stack_orchestrator/deploy/deployment_create.py +++ b/stack_orchestrator/deploy/deployment_create.py @@ -422,7 +422,7 @@ def _copy_files_to_directory(file_paths: List[Path], directory: Path): copy(path, os.path.join(directory, os.path.basename(path))) -def _create_deployment_file(deployment_dir: Path, cluster): +def _create_deployment_file(deployment_dir: Path, cluster: str | None): deployment_file_path = deployment_dir.joinpath(constants.deployment_file_name) if cluster is None: cluster = f"{constants.cluster_name_prefix}{token_hex(8)}"