From 92c8c76684c1ef14248fb5e20affe4dd0beecf6b Mon Sep 17 00:00:00 2001 From: James Bardin Date: Thu, 20 Oct 2022 13:14:16 -0400 Subject: [PATCH] fix variable name --- internal/terraform/context_plan.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/terraform/context_plan.go b/internal/terraform/context_plan.go index 09f6694153..9b35ea7562 100644 --- a/internal/terraform/context_plan.go +++ b/internal/terraform/context_plan.go @@ -336,9 +336,9 @@ func (c *Context) destroyPlan(config *configs.Config, prevRunState *states.State // to work within our current structure. if !opts.SkipRefresh && !prevRunState.Empty() { log.Printf("[TRACE] Context.destroyPlan: calling Context.plan to get the effect of refreshing the prior state") - normalOpts := *opts - normalOpts.Mode = plans.RefreshOnlyMode - refreshPlan, refreshDiags := c.refreshOnlyPlan(config, prevRunState, &normalOpts) + refreshOpts := *opts + refreshOpts.Mode = plans.RefreshOnlyMode + refreshPlan, refreshDiags := c.refreshOnlyPlan(config, prevRunState, &refreshOpts) if refreshDiags.HasErrors() { // NOTE: Normally we'd append diagnostics regardless of whether // there are errors, just in case there are warnings we'd want to