Skip to content

Commit 08d574b

Browse files
committed
fix: run cloud command the second time
1 parent cd2f54d commit 08d574b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/openllm/cloud.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ def _get_deploy_cmd(bento: BentoInfo, target: typing.Optional[DeploymentTarget]
6363
base_config = resolve_cloud_config()
6464
if not base_config.exists():
6565
raise Exception('Cannot find cloud config.')
66+
# remove before copy
67+
if (bento.repo.path / 'bentoml' / '.yatai.yaml').exists():
68+
(bento.repo.path / 'bentoml' / '.yatai.yaml').unlink()
6669
shutil.copy(base_config, bento.repo.path / 'bentoml' / '.yatai.yaml')
6770

6871
return cmd, env, None

0 commit comments

Comments
 (0)