Skip to content

Commit

Permalink
fix health check
Browse files Browse the repository at this point in the history
  • Loading branch information
sa committed Jun 24, 2022
1 parent 3f86f59 commit 9497273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admiral/pkg/apis/admiral/routes/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (opts *RouteOpts) ReturnSuccessGET(w http.ResponseWriter, r *http.Request)
// checkIfReadOnlyStringVal will be empty in case ""checkifreadonly" query param is not sent in the request. checkIfReadOnlyBoolVal will be false
checkIfReadOnlyBoolVal, err := strconv.ParseBool(checkIfReadOnlyStringVal)
var response string
if nil==err {
if len(checkIfReadOnlyStringVal) ==0 || nil==err {
if checkIfReadOnlyBoolVal{
admiralState := opts.RemoteRegistry.AdmiralState
if(*admiralState).ReadOnly{
Expand Down

0 comments on commit 9497273

Please sign in to comment.