X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmodels%2Fget_nodeb_id_list_response.go;h=7ed83aaf9d383f74f877a4e45262558336bb0ca2;hb=0f06f71ca88aeedf1239fdc0f3f4cb7fa0ab9823;hp=03f095d9848bff2634545da01e4b22db6e0007cb;hpb=de19068aaa1f3d2b415cd960106121ceb167aaa9;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/models/get_nodeb_id_list_response.go b/E2Manager/models/get_nodeb_id_list_response.go index 03f095d..7ed83aa 100644 --- a/E2Manager/models/get_nodeb_id_list_response.go +++ b/E2Manager/models/get_nodeb_id_list_response.go @@ -13,7 +13,10 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// + +// This source code is part of the near-RT RIC (RAN Intelligent Controller) +// platform project (RICP). + package models @@ -33,13 +36,13 @@ func NewGetNodebIdListResponse(nodebIdList []*entities.NbIdentity) *GetNodebIdLi } } -func (response *GetNodebIdListResponse) Marshal() (string, error) { +func (response *GetNodebIdListResponse) Marshal() ([]byte, error) { pmList := utils.ConvertNodebIdListToProtoMessageList(response.nodebIdList) result, err := utils.MarshalProtoMessageListToJsonArray(pmList) if err != nil { - return "", e2managererrors.NewInternalError(); + return nil, e2managererrors.NewInternalError(); } - return result, nil + return []byte(result), nil }