fix behavior of --image-type in llama stack build

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2025-05-14 17:26:32 +02:00
parent a1fbfb51e2
commit 75f29fbde0

View file

@ -209,6 +209,8 @@ def run_stack_build_command(args: argparse.Namespace) -> None:
color="red",
)
sys.exit(1)
if args.image_type:
build_config.image_type = args.image_type
if args.print_deps_only:
print(f"# Dependencies for {args.template or args.config or image_name}")