EventManager: fix adding ObjectDataString for provider events
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
07710ad98d
commit
1698ec2eb3
1 changed files with 2 additions and 2 deletions
|
@ -398,11 +398,11 @@ func (c *EventActionHTTPConfig) GetContext() (context.Context, context.CancelFun
|
||||||
|
|
||||||
// HasObjectData returns true if the {{ObjectData}} placeholder is defined
|
// HasObjectData returns true if the {{ObjectData}} placeholder is defined
|
||||||
func (c *EventActionHTTPConfig) HasObjectData() bool {
|
func (c *EventActionHTTPConfig) HasObjectData() bool {
|
||||||
if strings.Contains(c.Body, "{{ObjectData}}") {
|
if strings.Contains(c.Body, "{{ObjectData}}") || strings.Contains(c.Body, "{{ObjectDataString}}") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
for _, part := range c.Parts {
|
for _, part := range c.Parts {
|
||||||
if strings.Contains(part.Body, "{{ObjectData}}") {
|
if strings.Contains(part.Body, "{{ObjectData}}") || strings.Contains(part.Body, "{{ObjectDataString}}") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue