fix
This commit is contained in:
parent
da37b5566d
commit
51295ef577
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue