|
|
|
|
@ -135,9 +135,6 @@ type PlanOpts struct {
|
|
|
|
|
// Forget if set to true will cause the plan to forget all resources. This is
|
|
|
|
|
// only allowd in the context of a destroy plan.
|
|
|
|
|
Forget bool
|
|
|
|
|
|
|
|
|
|
// SkipGraphValidation if set to true will skip the graph validation step
|
|
|
|
|
SkipGraphValidation bool
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Plan generates an execution plan by comparing the given configuration
|
|
|
|
|
@ -918,7 +915,7 @@ func (c *Context) planGraph(config *configs.Config, prevRunState *states.State,
|
|
|
|
|
forgetResources: forgetResources,
|
|
|
|
|
forgetModules: forgetModules,
|
|
|
|
|
GenerateConfigPath: opts.GenerateConfigPath,
|
|
|
|
|
SkipValidation: opts.SkipGraphValidation,
|
|
|
|
|
SkipValidation: c.graphOpts.SkipGraphValidation,
|
|
|
|
|
}).Build(addrs.RootModuleInstance)
|
|
|
|
|
return graph, walkPlan, diags
|
|
|
|
|
case plans.RefreshOnlyMode:
|
|
|
|
|
@ -1113,7 +1110,7 @@ func (c *Context) PlanGraphForUI(config *configs.Config, prevRunState *states.St
|
|
|
|
|
|
|
|
|
|
var diags tfdiags.Diagnostics
|
|
|
|
|
|
|
|
|
|
opts := &PlanOpts{Mode: mode, SkipGraphValidation: true}
|
|
|
|
|
opts := &PlanOpts{Mode: mode}
|
|
|
|
|
|
|
|
|
|
graph, _, moreDiags := c.planGraph(config, prevRunState, opts)
|
|
|
|
|
diags = diags.Append(moreDiags)
|
|
|
|
|
|