Skip to content

Commit

Permalink
Merge pull request #911 from ripienaar/connection_filter_conns
Browse files Browse the repository at this point in the history
Fix naming of connection variable in connz filter
  • Loading branch information
ripienaar authored Oct 25, 2023
2 parents e938753 + 1ee4275 commit c5299f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/server_report_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,12 @@ func (c *SrvReportCmd) getConnz(limit int, nc *nats.Conn) (connzList, error) {
for _, conn := range conns {
env["server"] = srv
env["Server"] = co.Server
env["conns"] = structWithoutOmitEmpty(*conn)
env["conn"] = structWithoutOmitEmpty(*conn)
env["Conn"] = conn

// backward compat, the `s` here is a mistake
env["Conns"] = conn
env["conns"] = env["conn"]

out, err := expr.Run(program, env)
if err != nil {
Expand Down

0 comments on commit c5299f6

Please sign in to comment.