<#386 pass --image CLI args to init in recursive d...
# flyte-github
a
#386 pass --image CLI args to init in recursive deploy mode Pull request opened by dansola ## Summary Fixes
--image
CLI args being ignored when using
--recursive
flag in deploy command. ## Bug The
DeployEnvRecursiveCommand.invoke()
method doesn't pass
images
parameter to
obj.init()
, causing image reference lookup to fail. ## Fix Add missing
images=tuple(self.deploy_args.image) or None
parameter at line 197. ## Test Cases Minimal repro code (
wf.py
): import flyte image = flyte.Image.from_ref_name("test") env = flyte.TaskEnvironment(name="hello_world", image=image) @env.task def fn(x: int) -> int: return x + 1 Before (broken): $ flyte deploy --image test=ghcr.io/flyteorg/flytekit:py3.9 --recursive . Error: Image name 'test' not found in config. Available: [] After (fixed): $ flyte deploy --image test=ghcr.io/flyteorg/flytekit:py3.9 --recursive . ✅ Deploying... (works correctly) flyteorg/flyte-sdk