Skip to content

Commit

Permalink
fix(pull): correct use cloud_context for models pull (#4163)
Browse files Browse the repository at this point in the history
Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
  • Loading branch information
aarnphm committed Sep 1, 2023
1 parent d642016 commit ca6eca5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bentoml_cli/models.py
Expand Up @@ -268,7 +268,9 @@ def pull(ctx: click.Context, model_tag: str | None, force: bool, bentofile: str)
if model_tag is not None:
if ctx.get_parameter_source("bentofile") != ParameterSource.DEFAULT:
click.echo("-f bentofile is ignored when model_tag is provided")
cloud_client.pull_model(model_tag, force=force, context=ctx.obj.context)
cloud_client.pull_model(
model_tag, force=force, context=ctx.obj.cloud_context
)
return

try:
Expand Down

0 comments on commit ca6eca5

Please sign in to comment.