Skip to content

Commit

Permalink
return valid json
Browse files Browse the repository at this point in the history
  • Loading branch information
yylyyl committed Nov 9, 2023
1 parent f90f45a commit a5066b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ func UpdateAction(w http.ResponseWriter, req *http.Request) {
str := fmt.Sprintf("updater not running, status %s exit_code %d", inspectUpdater.State.Status, inspectUpdater.State.ExitCode)
http.Error(w, str, http.StatusInternalServerError)
}

utils.Return(w, true)
}

func createUpdater(ctx context.Context, image string, inspect *define.InspectContainerData) (string, error) {
Expand Down

0 comments on commit a5066b4

Please sign in to comment.