Skip to content

Commit

Permalink
fix: use sprint to cast to strings in gnmi (#11010)
Browse files Browse the repository at this point in the history
  • Loading branch information
bewing authored and MyaLongmire committed Jul 6, 2022
1 parent c72d6fb commit 3b893f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/gnmi/gnmi.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func (c *GNMI) handleSubscribeResponseUpdate(address string, response *gnmiLib.S
for subscriptionName, values := range c.lookup {
if annotations, ok := values[subscriptionKey]; ok {
for k, v := range annotations {
tags[subscriptionName+"/"+k] = v.(string)
tags[subscriptionName+"/"+k] = fmt.Sprint(v)
}
}
}
Expand Down

0 comments on commit 3b893f3

Please sign in to comment.