Skip to content

Commit

Permalink
allow null value in Labels and Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli committed Dec 18, 2024
1 parent cc045bd commit 72b4db0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func newBiConnector(ctx context.Context, input types.Object, diags *diag.Diagnos
}
}
func newComponentLabel(ctx context.Context, input types.Set, diags *diag.Diagnostics) *[]admin.ComponentLabel {
if input.IsUnknown() || input.IsNull() {
if input.IsUnknown() {
return nil
}
elements := make([]TFLabelsModel, len(input.Elements()))
Expand Down Expand Up @@ -110,7 +110,7 @@ func resolveZoneNameOrUseDefault(item *TFReplicationSpecsModel) string {
}

func newResourceTag(ctx context.Context, input types.Set, diags *diag.Diagnostics) *[]admin.ResourceTag {
if input.IsUnknown() || input.IsNull() {
if input.IsUnknown() {
return nil
}
elements := make([]TFTagsModel, len(input.Elements()))
Expand Down

0 comments on commit 72b4db0

Please sign in to comment.