INNER CODE UNIT · Go

func

hashicorp/terraform-provider-null · internal/planmodifiers/attribute.go:18

func (r requiresReplaceIfValuesNotNullModifier) PlanModifyMap(ctx context.Context, req planmodifier.MapRequest, resp *planmodifier.MapResponse) {
	if req.State.Raw.IsNull() {
		// if we're creating the resource, no need to delete and
		// recreate it
		return
	}

	if req.Plan.Raw.IsNull() {
		// if we're deleting the resource, no need to delete and
		// recreate it
		return
	}

	// If there are no differences, do not mark the resource for replacement
	// and ensure the plan matches the configuration.
	if req.ConfigValue.Equal(req.StateValue) {
		return
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…