stacks: move PlanTimestamp method for consistency

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

@ -1200,6 +1200,12 @@ func (c *ComponentInstance) ResolveExpressionReference(ctx context.Context, ref
return stack.resolveExpressionReference(ctx, ref, nil, c.repetition)
}
// PlanTimestamp implements ExpressionScope, providing the timestamp at which
// the current plan is being run.
func (c *ComponentInstance) PlanTimestamp() time.Time {
return c.main.PlanTimestamp()
}
// PlanChanges implements Plannable by validating that all of the per-instance
// arguments are suitable, and then asking the main Terraform language runtime
// to produce a plan in terms of the component's selected module.
@ -1592,7 +1598,3 @@ func (c *ComponentInstance) tracingName() string {
func (c *ComponentInstance) reportNamedPromises(cb func(id promising.PromiseID, name string)) {
cb(c.moduleTreePlan.PromiseID(), c.Addr().String()+" plan")
}
func (c *ComponentInstance) PlanTimestamp() time.Time {
return c.main.PlanTimestamp()
}

Loading…
Cancel
Save