Skip to content

Commit

Permalink
fixing special case AlertNode and http_out message
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-rehor committed Nov 15, 2017
1 parent 532deb9 commit 5ef465a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pipeline/http_out.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ import (
// //Publish the top 10 results over the last 10s updated every 5s.
// |httpOut('top10')
//
// Beware of adding a final slash ‘/’ to the URL. This will result in a 404 error for a
// task that does not exist.
//
// Note that the example script above comes from the
// [scores](https://github.com/influxdata/kapacitor/tree/master/examples/scores) example.
// See the complete scores example for a concrete demonstration.
//
type HTTPOutNode struct {
chainnode

Expand Down
2 changes: 1 addition & 1 deletion tick/cmd/tickdoc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ func (n *Node) Render(buf *bytes.Buffer, r Renderer, nodes map[string]*Node, wei
}
config.headerTemplate.Execute(buf, info)

if len(n.AnonFields) > 0 && n.AnonFields[0] != "chainnode" && n.AnonFields[0] != "node" {
if len(n.AnonFields) > 0 && n.AnonFields[0] == "AlertNodeData" {
renderDoc(buf, nodes, r, nodes[n.AnonFields[0]].Doc)
} else {
renderDoc(buf, nodes, r, n.Doc)
Expand Down

0 comments on commit 5ef465a

Please sign in to comment.