Skip to content

Commit

Permalink
Update plugins/inputs/gnmi/handler.go
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Casteleyn <[email protected]>
  • Loading branch information
powersj and Hipska authored Jan 23, 2024
1 parent b89861c commit 4b49a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/gnmi/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (h *handler) handleSubscribeResponseUpdate(acc telegraf.Accumulator, respon
key = parts[1]
}
} else {
// If the origis are the same and the alias is shorter than the
// If the origins are the same and the alias is shorter than the
// full path to avoid an empty key, then strip the common part if
// the field is prefixed with the alias path.
if aliasInfo.origin == field.path.origin && aliasInfo.isSubPathOf(field.path) && len(aliasInfo.segments) < len(field.path.segments) {
Expand Down

0 comments on commit 4b49a33

Please sign in to comment.