Skip to content

Commit

Permalink
remove use of definitionName
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Norton committed Jan 2, 2024
1 parent 7a40d3a commit fe86142
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions policy/policy_handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,8 @@ func (h EventHandler) evaluate(ctx context.Context, req skill.RequestContext, da
paramValues[p.Name] = p.Value
}

if _, ok := paramValues["definitionName"]; !ok {
return skill.NewFailedStatus("Missing definition name in policy skill configuration")
}

goal := goals.Goal{
Definition: paramValues["definitionName"].(string),
Definition: goalName,
Configuration: cfg,
Args: paramValues,
}
Expand Down

0 comments on commit fe86142

Please sign in to comment.