From b9d3536db8dc7fd63545b7703c3b69d4da76ff26 Mon Sep 17 00:00:00 2001 From: Siva Kanakala Date: Wed, 6 May 2026 11:40:03 +0530 Subject: [PATCH] fix: remove length check for appended tolerations --- aspell_custom.txt | 1 + rancher2/structure_agent_deployment_customization.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aspell_custom.txt b/aspell_custom.txt index 52877a399..297b619f8 100644 --- a/aspell_custom.txt +++ b/aspell_custom.txt @@ -43,3 +43,4 @@ destructuring yaml ttl pkce +tolerations diff --git a/rancher2/structure_agent_deployment_customization.go b/rancher2/structure_agent_deployment_customization.go index 88c210f48..922e8e6dc 100644 --- a/rancher2/structure_agent_deployment_customization.go +++ b/rancher2/structure_agent_deployment_customization.go @@ -44,7 +44,7 @@ func expandAgentDeploymentCustomization(p []interface{}) (*managementClient.Agen in := p[0].(map[string]interface{}) - if v, ok := in["append_tolerations"].([]interface{}); ok && len(v) > 0 { + if v, ok := in["append_tolerations"].([]interface{}); ok { obj.AppendTolerations = expandTolerations(v) }