diff --git a/pkg/controller/external_nofork.go b/pkg/controller/external_nofork.go index be4e40a8..7e8cfab7 100644 --- a/pkg/controller/external_nofork.go +++ b/pkg/controller/external_nofork.go @@ -495,6 +495,9 @@ func (n *noForkExternal) Observe(ctx context.Context, mg xpresource.Managed) (ma if err != nil { return managed.ExternalObservation{}, errors.Wrap(err, "cannot compute the instance diff") } + if instanceDiff == nil { + instanceDiff = tf.NewInstanceDiff() + } n.instanceDiff = instanceDiff noDiff := instanceDiff.Empty()