fix: use sprint to cast to strings in gnmi (#11010)
This commit is contained in:
parent
d0306e33a4
commit
dc95d22272
|
|
@ -326,7 +326,7 @@ func (c *GNMI) handleSubscribeResponseUpdate(address string, response *gnmiLib.S
|
||||||
for subscriptionName, values := range c.lookup {
|
for subscriptionName, values := range c.lookup {
|
||||||
if annotations, ok := values[subscriptionKey]; ok {
|
if annotations, ok := values[subscriptionKey]; ok {
|
||||||
for k, v := range annotations {
|
for k, v := range annotations {
|
||||||
tags[subscriptionName+"/"+k] = v.(string)
|
tags[subscriptionName+"/"+k] = fmt.Sprint(v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue