mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-01 16:24:44 +00:00
feat: --image-type argument overrides value in --config build.yaml
closes #2162
This commit is contained in:
parent
8e7ab146f8
commit
8a18d5ecbf
1 changed files with 2 additions and 0 deletions
|
@ -203,6 +203,8 @@ def run_stack_build_command(args: argparse.Namespace) -> None:
|
|||
with open(args.config) as f:
|
||||
try:
|
||||
build_config = BuildConfig(**yaml.safe_load(f))
|
||||
if args.image_type:
|
||||
build_config.image_type = args.image_type
|
||||
except Exception as e:
|
||||
cprint(
|
||||
f"Could not parse config file {args.config}: {e}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue