Skip to content

Commit b9d3536

Browse files
committed
fix: remove length check for appended tolerations
1 parent e595d0f commit b9d3536

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

aspell_custom.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ destructuring
4343
yaml
4444
ttl
4545
pkce
46+
tolerations

rancher2/structure_agent_deployment_customization.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func expandAgentDeploymentCustomization(p []interface{}) (*managementClient.Agen
4444

4545
in := p[0].(map[string]interface{})
4646

47-
if v, ok := in["append_tolerations"].([]interface{}); ok && len(v) > 0 {
47+
if v, ok := in["append_tolerations"].([]interface{}); ok {
4848
obj.AppendTolerations = expandTolerations(v)
4949
}
5050

0 commit comments

Comments
 (0)