Skip to content

Commit

Permalink
Merge pull request #149 from TIBCOSoftware/action-mapping-issue
Browse files Browse the repository at this point in the history
Action mapping should be evaluated irrespective of trigger output
  • Loading branch information
vijaynalawade authored Mar 22, 2018
2 parents c59a67f + 5062208 commit 14ecc2c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/trigger/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,13 @@ func (h *Handler) dataToAttrs(triggerData map[string]interface{}) ([]*data.Attri

func (h *Handler) generateInputs(triggerData map[string]interface{}) (map[string]*data.Attribute, error) {

if len(triggerData) == 0 {
return nil, nil
}

triggerAttrs, err := h.dataToAttrs(triggerData)

if err != nil {
logger.Errorf("Failed parsing attrs: %s, Error: %s", triggerData, err)
return nil, err
}

if len(triggerAttrs) == 0 {
return nil, nil
}

var inputs map[string]*data.Attribute

//if h.act.IOMetadata() == nil {
Expand Down

0 comments on commit 14ecc2c

Please sign in to comment.