Commit d90dd699 authored by Yann Garcia's avatar Yann Garcia
Browse files

Bug fixed in Liveness support (message part)

parent 46f96755
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9,6 +9,6 @@
 */
package server

type ServiceLivenessUpdate struct {
	State *ServiceState `json:"state"`
type ServiceLivenessUpdate struct { // FSCOM Chang manuall (remove *)
	State ServiceState `json:"state"`
}
+3 −1
Original line number Diff line number Diff line
@@ -955,7 +955,9 @@ func patchIndividualMECService(w http.ResponseWriter, r *http.Request) {
			errHandlerProblemDetails(w, err.Error(), http.StatusInternalServerError)
			return
		}
		if *serviceLivenessUpdate.State == ACTIVE_ServiceState {
		log.Info("patchIndividualMECService: serviceLivenessUpdate: ", serviceLivenessUpdate)
		log.Info("patchIndividualMECService: serviceLivenessUpdate: ", serviceLivenessUpdate.State)
		if serviceLivenessUpdate.State == ACTIVE_ServiceState {
			entry.State = &ACTIVE_ServiceState
		} else { // ETSI GS MEC 011 V3.2.1 (2024-04) Table 8.1.2.5-1: Attributes of ServiceLivenessUpdate
			err := errors.New("Wrong body content")