Skip to content

Commit

Permalink
Action mapping should be evaluated irrespective of trigger output
Browse files Browse the repository at this point in the history
  • Loading branch information
vnalawad-tibco committed Mar 21, 2018
1 parent c59a67f commit 5062208
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 5062208

Please sign in to comment.