Skip to content

Commit

Permalink
fix bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Apr 23, 2024
1 parent 6feba72 commit e679f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/common/cluster_bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
}

Expand Down

0 comments on commit e679f11

Please sign in to comment.