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
(cherry picked from commit dc95d22)
  • Loading branch information
bewing authored and Sebastian Spaink committed Apr 25, 2022
1 parent ec401a4 commit 510d406
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 510d406

Please sign in to comment.