feat(module): add PlanForce to Module interface with stubs

This commit is contained in:
MDietermann
2026-04-14 21:49:09 +02:00
parent e6e12ab5fd
commit d525646f3a
19 changed files with 96 additions and 0 deletions

View File

@@ -31,6 +31,12 @@ func (s scriptedModule) Plan(ctx context.Context, _ module.State) (module.Plan,
}
return module.Plan{}, nil
}
func (s scriptedModule) PlanForce(ctx context.Context) (module.Plan, error) {
if s.plan != nil {
return s.plan()
}
return module.Plan{}, nil
}
func (s scriptedModule) Apply(ctx context.Context, _ module.Plan, _ module.Reporter) error {
if s.apply != nil {
return s.apply()