[fix] Agent Engine unmanaged deployments don't include inline-source (#3969)

This commit is contained in:
Luca Prete
2026-05-15 18:26:42 +02:00
committed by GitHub
parent 76c6d4f404
commit e7118d52e5
2 changed files with 5 additions and 7 deletions

View File

@@ -155,17 +155,15 @@ resource "google_vertex_ai_reasoning_engine" "unmanaged" {
dynamic "source_code_spec" {
for_each = (
var.deployment_config.source_files_config == null ?
{}
: { 1 = 1 }
var.deployment_config.source_files_config == null ? {} : { 1 = 1 }
)
content {
dynamic "inline_source" {
for_each = (
try(var.deployment_config.source_files_config.source_path, null) == null
? { 1 = 1 }
: {}
? {}
: { 1 = 1 }
)
content {
source_archive = filebase64(var.deployment_config.source_files_config.source_path)