diff --git a/backend/local/hook_count.go b/backend/local/hook_count.go index 9c2d030b0d..4708159dc0 100644 --- a/backend/local/hook_count.go +++ b/backend/local/hook_count.go @@ -42,6 +42,10 @@ func (h *CountHook) PreApply( h.Lock() defer h.Unlock() + if d.Empty() { + return terraform.HookActionContinue, nil + } + if h.pending == nil { h.pending = make(map[string]countHookAction) }