Skip to content

Commit

Permalink
fix: enable image spec by default
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Jan 23, 2025
1 parent 5396879 commit 40e88b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bentoml/_internal/bento/bento.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ def create(
if build_ctx is None
else os.path.realpath(os.path.expanduser(build_ctx))
)
enable_image = "bento_image" in enabled_features
if not os.path.isdir(build_ctx):
raise InvalidArgument(
f"Bento build context {build_ctx} does not exist or is not a directory."
Expand Down Expand Up @@ -283,7 +282,7 @@ def create(
build_config.envs.extend(svc.envs)
if svc.image is not None:
image = svc.image
if image is None and enable_image:
if image is None:
image = get_image_from_build_config(build_config)
build_config = build_config.with_defaults()
tag = Tag(bento_name, version)
Expand Down

0 comments on commit 40e88b7

Please sign in to comment.