Code Review
/
ric-plt
/
a1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix UT and change function to private
[ric-plt/a1.git]
/
a1-go
/
pkg
/
restful
/
restful.go
diff --git
a/a1-go/pkg/restful/restful.go
b/a1-go/pkg/restful/restful.go
index
b7e2094
..
f34a5ad
100644
(file)
--- 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.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 {
})
api.A1MediatorA1ControllerGetAllInstancesForTypeHandler = a1_mediator.A1ControllerGetAllInstancesForTypeHandlerFunc(func(params a1_mediator.A1ControllerGetAllInstancesForTypeParams) middleware.Responder {