Skip to content

Commit

Permalink
fix(cloud cli): workaround env update issue (#4608)
Browse files Browse the repository at this point in the history
* fix(cloud cli): workaround env update issue

* ci: auto fixes from pre-commit.ci

For more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
bojiang and pre-commit-ci[bot] committed Mar 22, 2024
1 parent 3b32064 commit a9000c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bentoml/_internal/cloud/deployment.py
Expand Up @@ -22,7 +22,6 @@
from bentoml._internal.bento.bento import BentoStore
from bentoml._internal.cloud.bentocloud import BentoCloudClient


from ...exceptions import BentoMLException
from ...exceptions import NotFound
from ..bento.bento import BentoInfo
Expand Down Expand Up @@ -686,6 +685,8 @@ def update(
cloud_rest_client = get_rest_api_client(context)
deployment_schema = cloud_rest_client.v2.get_deployment(name, cluster)
orig_dict = cls._convert_schema_to_update_schema(deployment_schema)
for service in orig_dict.get("services", {}).values():
service.pop("envs", None)

config_params = deployment_config_params.get_config_dict(
orig_dict.get("bento"),
Expand Down

0 comments on commit a9000c8

Please sign in to comment.