Skip to content

Commit ae05a0d

Browse files
stacks: use plantimestamp from opts while planning
1 parent a51938c commit ae05a0d

File tree

1 file changed

+3
-7
lines changed
  • internal/stacks/stackruntime/internal/stackeval

1 file changed

+3
-7
lines changed

internal/stacks/stackruntime/internal/stackeval/main.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ type mainValidating struct {
9090
type mainPlanning struct {
9191
opts PlanOpts
9292
prevState *stackstate.State
93-
94-
// This is the plan timestamp that will be used for the plan if forcePlanTimestamp is not set.
95-
planTimestamp time.Time
9693
}
9794

9895
type mainApplying struct {
@@ -127,9 +124,8 @@ func NewForPlanning(config *stackconfig.Config, prevState *stackstate.State, opt
127124
return &Main{
128125
config: config,
129126
planning: &mainPlanning{
130-
opts: opts,
131-
prevState: prevState,
132-
planTimestamp: opts.PlanTimestamp,
127+
opts: opts,
128+
prevState: prevState,
133129
},
134130
providerFactories: opts.ProviderFactories,
135131
providerTypes: make(map[addrs.Provider]*ProviderType),
@@ -607,7 +603,7 @@ func (m *Main) PlanTimestamp() time.Time {
607603
return m.applying.plan.PlanTimestamp
608604
}
609605
if m.planning != nil {
610-
return m.planning.planTimestamp
606+
return m.planning.opts.PlanTimestamp
611607
}
612608

613609
// This is the default case, we are not planning / applying

0 commit comments

Comments
 (0)