feat(module): add PlanForce to Module interface with stubs
This commit is contained in:
@@ -119,6 +119,12 @@ func (c countingModule) Plan(context.Context, module.State) (module.Plan, error)
|
||||
}
|
||||
return module.Plan{}, nil
|
||||
}
|
||||
func (c countingModule) PlanForce(context.Context) (module.Plan, error) {
|
||||
if c.onPlan != nil {
|
||||
c.onPlan()
|
||||
}
|
||||
return module.Plan{}, nil
|
||||
}
|
||||
func (c countingModule) Apply(context.Context, module.Plan, module.Reporter) error { return nil }
|
||||
func (c countingModule) Verify(context.Context) error { return nil }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user