fix: use sprint to cast to strings in gnmi (#11010)

This commit is contained in:
bewing 2022-04-21 08:45:37 -05:00 committed by GitHub
parent d0306e33a4
commit dc95d22272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}
}