X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=a1-go%2Fpkg%2Frestful%2Frestful.go;h=f34a5ad208a730688c168ac5fe29bfe7f9be69e0;hb=refs%2Fchanges%2F14%2F9114%2F8;hp=b7e209495f5914729edf44c1ae53d980b4119f57;hpb=44f5c8a90e9aabb096d8f6100e49f34eb4f89b01;p=ric-plt%2Fa1.git diff --git a/a1-go/pkg/restful/restful.go b/a1-go/pkg/restful/restful.go index b7e2094..f34a5ad 100644 --- a/a1-go/pkg/restful/restful.go +++ b/a1-go/pkg/restful/restful.go @@ -90,9 +90,9 @@ func (r *Restful) setupHandler() *operations.A1API { return a1_mediator.NewA1ControllerGetPolicyInstanceOK().WithPayload(resp) } if r.rh.IsPolicyInstanceNotFound(err) { - return a1_mediator.NewA1ControllerGetPolicyInstanceNotFound + return a1_mediator.NewA1ControllerGetPolicyInstanceNotFound() } - return a1_mediator.NewA1ControllerGetPolicyInstanceServiceUnavailable + return a1_mediator.NewA1ControllerGetPolicyInstanceServiceUnavailable() }) api.A1MediatorA1ControllerGetAllInstancesForTypeHandler = a1_mediator.A1ControllerGetAllInstancesForTypeHandlerFunc(func(params a1_mediator.A1ControllerGetAllInstancesForTypeParams) middleware.Responder {