Skip to content

Commit 3c5a47f

Browse files
use .ToString()
1 parent 3a44c38 commit 3c5a47f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/datastore/target/netconf/xml2SchemapbAdapter.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,8 @@ func (x *XML2sdcpbConfigAdapter) transformContainer(ctx context.Context, e *etre
127127
if err != nil {
128128
return err
129129
}
130-
keyValue := utils.TypedValueToString(tv)
131130

132-
cPElem[len(cPElem)-1].Key[ls.Name] = keyValue
131+
cPElem[len(cPElem)-1].Key[ls.Name] = tv.ToString()
133132
}
134133

135134
ntc := NewTransformationContext(cPElem)

0 commit comments

Comments
 (0)