diff --git a/app/deploy/deployment_create.py b/app/deploy/deployment_create.py index 67893890..4f297286 100644 --- a/app/deploy/deployment_create.py +++ b/app/deploy/deployment_create.py @@ -369,7 +369,8 @@ def create(ctx, spec_file, deployment_dir, network_dir, initial_peers): deployment_context = DeploymentContext(Path(deployment_dir), deployment_command_context) # Call the deployer to generate any deployer-specific files (e.g. for kind) deployer_config_generator = getDeployerConfigGenerator(parsed_spec["deploy-to"]) - deployer_config_generator.generate(deployment_dir) + # TODO: make deployment_dir a Path above + deployer_config_generator.generate(Path(deployment_dir)) call_stack_deploy_create(deployment_context, [network_dir, initial_peers]) diff --git a/app/deploy/k8s/deploy_k8s.py b/app/deploy/k8s/deploy_k8s.py index 06f893df..a7ccf3bf 100644 --- a/app/deploy/k8s/deploy_k8s.py +++ b/app/deploy/k8s/deploy_k8s.py @@ -121,6 +121,7 @@ class K8sDeployerConfigGenerator(DeployerConfigGenerator): # Check the file isn't already there # Get the config file contents content = generate_kind_config() + config_file = deployment_dir.joinpath(self.config_file_name) # Write the file - with open(deployment_dir, "w") as output_file: + with open(config_file, "w") as output_file: output_file.write(content)