Skip to content
Snippets Groups Projects
Commit 14d93d6a authored by Fabian Seidl's avatar Fabian Seidl
Browse files

fix access to value of var

parent 4ec95fc5
Branches main
No related tags found
No related merge requests found
Pipeline #262476 passed
......@@ -247,11 +247,11 @@ func (n *NetworkElementWatcher) handleSubscribeResponseUpdate(resp *gpb.Subscrib
switch v := update.GetVal().GetValue().(type) {
case *gpb.TypedValue_StringVal:
pathsAndValues[pathString] = update.Val.GetStringVal()
pathsAndValues[pathString] = update.GetVal().GetStringVal()
case *gpb.TypedValue_JsonIetfVal:
pathsAndValues[pathString] = string(update.GetVal().GetJsonIetfVal())
case *gpb.TypedValue_UintVal:
pathsAndValues[pathString] = fmt.Sprintf("%d", update.Val.GetUintVal())
pathsAndValues[pathString] = fmt.Sprintf("%d", update.GetVal().GetUintVal())
default:
log.Errorf("The given value of type: %T, provided by a SubResponse from network element with ID: %s is not supported", v, subscriptionInfo.NetworkElementID)
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment