Skip to content

Commit 493432c

Browse files
authored
fix: add deployment_target to conditional config for adk_live service.tf exclusion (#725)
The conditional logic to exclude service.tf files for adk_live + agent_engine was failing because the deployment_target key was missing from the conditional_config dict. This caused Terraform to create source-based agent engines while deploy.py tried to update them with pickle-based deployment, resulting in API errors.
1 parent 4e51eea commit 493432c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

agent_starter_pack/cli/utils/template.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,7 @@ def get_agent_directory(
16301630
# Apply conditional file logic (Windows-compatible replacement for Jinja2 filenames)
16311631
conditional_config = {
16321632
"agent_name": agent_name,
1633+
"deployment_target": deployment_target,
16331634
"cicd_runner": cicd_runner or "google_cloud_build",
16341635
"is_adk": "adk" in tags,
16351636
"is_adk_live": "adk_live" in tags,

0 commit comments

Comments
 (0)