From 37b5e2dc87346e4f499f773bd0c79f9ee60263a5 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Wed, 23 Jan 2019 17:33:23 -0500 Subject: [PATCH] don't remove empty diff values Our new diff handling no longer requires stripping the empty diffs out, and provider may be relying on some of the empty-value quirks in helper/schema. --- helper/plugin/grpc_provider.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/helper/plugin/grpc_provider.go b/helper/plugin/grpc_provider.go index 1bcd491aa..fdbf0a840 100644 --- a/helper/plugin/grpc_provider.go +++ b/helper/plugin/grpc_provider.go @@ -697,13 +697,6 @@ func (s *GRPCProviderServer) ApplyResourceChange(_ context.Context, req *proto.A } } - // strip out non-diffs - for k, v := range diff.Attributes { - if v.New == v.Old && !v.NewComputed && !v.NewRemoved { - delete(diff.Attributes, k) - } - } - // add NewExtra Fields that may have been stored in the private data if newExtra := private[newExtraKey]; newExtra != nil { for k, v := range newExtra.(map[string]interface{}) {