Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[RIC-213] Add globalRicId to configuration and remove env var RIC_ID
[ric-plt/e2mgr.git]
/
E2Manager
/
models
/
get_nodeb_response.go
diff --git
a/E2Manager/models/get_nodeb_response.go
b/E2Manager/models/get_nodeb_response.go
index
9474465
..
1eaa32a
100644
(file)
--- a/
E2Manager/models/get_nodeb_response.go
+++ b/
E2Manager/models/get_nodeb_response.go
@@
-36,14
+36,14
@@
func NewGetNodebResponse(nodebInfo *entities.NodebInfo) *GetNodebResponse {
}
}
}
}
-func (response *GetNodebResponse) Marshal() (
string
, error) {
+func (response *GetNodebResponse) Marshal() (
[]byte
, error) {
m := jsonpb.Marshaler{}
result, err := m.MarshalToString(response.nodebInfo)
if err != nil {
m := jsonpb.Marshaler{}
result, err := m.MarshalToString(response.nodebInfo)
if err != nil {
- return
""
, e2managererrors.NewInternalError()
+ return
nil
, e2managererrors.NewInternalError()
}
}
- return
result
, nil
+ return
[]byte(result)
, nil
}
}