This commit is contained in:
alteredCoder 2023-07-31 18:39:15 +02:00
parent da37b5566d
commit 51295ef577

View file

@ -37,11 +37,17 @@ func NewResponseRequest(Tx experimental.FullTransaction, in *corazatypes.Interru
}
func (r *ResponseRequest) SetRemediation(remediation string) error {
if r.Interruption == nil {
return nil
}
r.Interruption.Action = remediation
return nil
}
func (r *ResponseRequest) SetRemediationByID(ID int, remediation string) error {
if r.Interruption == nil {
return nil
}
if r.Interruption.RuleID == ID {
r.Interruption.Action = remediation
}