Skip to content

Commit

Permalink
fix(argocd_application): don't flatten spec.info if list is empty (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mkilchhofer authored Nov 19, 2023
1 parent b42b922 commit 9438664
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion argocd/structure_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,9 @@ func flattenApplicationInfo(infos []application.Info) (result []map[string]strin
info["value"] = i.Value
}

result = append(result, info)
if len(info) > 0 {
result = append(result, info)
}
}

return
Expand Down

0 comments on commit 9438664

Please sign in to comment.