stacks: force plan timestamp in module runtime

pull/35367/head
Daniel Schmidt 2 years ago
parent b62a67394b
commit 49ba330fb5
No known key found for this signature in database
GPG Key ID: 377C3A4D62FBBBE2

@ -598,6 +598,7 @@ func (c *ComponentInstance) CheckModuleTreePlan(ctx context.Context) (*plans.Pla
}
}()
plantimestamp := c.main.PlanTimestamp()
// NOTE: This ComponentInstance type only deals with component
// instances currently declared in the configuration. See
// [ComponentInstanceRemoved] for the model of a component instance
@ -610,9 +611,8 @@ func (c *ComponentInstance) CheckModuleTreePlan(ctx context.Context) (*plans.Pla
DeferralAllowed: true,
ExternalDependencyDeferred: deferred,
// This is set by some tests but should not be used in main code.
// (nil means to use the real time when tfCtx.Plan was called.)
ForcePlanTimestamp: stackPlanOpts.ForcePlanTimestamp,
// We want the same plantimestamp between all components and the stacks language
ForcePlanTimestamp: &plantimestamp,
})
diags = diags.Append(moreDiags)

Loading…
Cancel
Save