add SkipRefresh to the terraform context
This commit is contained in:
parent
c2566bff7b
commit
eebb4dfcb2
|
@ -54,6 +54,7 @@ type ContextOpts struct {
|
|||
Variables InputValues
|
||||
Meta *ContextMeta
|
||||
Destroy bool
|
||||
SkipRefresh bool
|
||||
|
||||
Hooks []Hook
|
||||
Parallelism int
|
||||
|
@ -97,6 +98,7 @@ type Context struct {
|
|||
changes *plans.Changes
|
||||
state *states.State
|
||||
refreshState *states.State
|
||||
skipRefresh bool
|
||||
targets []addrs.Targetable
|
||||
variables InputValues
|
||||
meta *ContextMeta
|
||||
|
@ -233,6 +235,7 @@ func NewContext(opts *ContextOpts) (*Context, tfdiags.Diagnostics) {
|
|||
config: config,
|
||||
state: state,
|
||||
refreshState: state.DeepCopy(),
|
||||
skipRefresh: opts.SkipRefresh,
|
||||
targets: opts.Targets,
|
||||
uiInput: opts.UIInput,
|
||||
variables: variables,
|
||||
|
@ -299,6 +302,7 @@ func (c *Context) Graph(typ GraphType, opts *ContextGraphOpts) (*Graph, tfdiags.
|
|||
Schemas: c.schemas,
|
||||
Targets: c.targets,
|
||||
Validate: opts.Validate,
|
||||
skipRefresh: c.skipRefresh,
|
||||
}).Build(addrs.RootModuleInstance)
|
||||
|
||||
case GraphTypePlanDestroy:
|
||||
|
|
Loading…
Reference in New Issue