From e679f1140b887d9bc24779bdcc1ae754d67abee4 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Tue, 23 Apr 2024 09:51:04 +0200 Subject: [PATCH] fix bindings --- internal/common/cluster_bindings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/common/cluster_bindings.go b/internal/common/cluster_bindings.go index e29fb30..ceac7f1 100644 --- a/internal/common/cluster_bindings.go +++ b/internal/common/cluster_bindings.go @@ -61,7 +61,7 @@ func (cb *ClusterBindings) From(readBindings []*console.PolicyBindingFragment, w } func clusterBindingsFrom(bindings []*console.PolicyBindingFragment, ctx context.Context, d diag.Diagnostics) types.Set { - if len(bindings) == 0 { + if bindings == nil { return types.SetNull(basetypes.ObjectType{AttrTypes: ClusterPolicyBindingAttrTypes}) }