Skip to content

Commit

Permalink
Fix status path when using globs in phpfpm (influxdata#7324)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored Apr 14, 2020
1 parent aab5800 commit 48f5da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/inputs/phpfpm/phpfpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ func globUnixSocket(url string) ([]string, error) {

for _, path := range paths {
if status != "" {
status = fmt.Sprintf(":%s", status)
path = path + ":" + status
}
addrs = append(addrs, fmt.Sprintf("%s%s", path, status))
addrs = append(addrs, path)
}

return addrs, nil
Expand Down

0 comments on commit 48f5da7

Please sign in to comment.