kingamarton commented on a change in pull request #207:
URL:
https://github.com/apache/incubator-yunikorn-core/pull/207#discussion_r551401441
##########
File path: pkg/webservice/handlers.go
##########
@@ -495,6 +496,11 @@ func updateConfig(w http.ResponseWriter, r *http.Request) {
buildUpdateResponse(nil, w)
}
+func isChecksumValid(checksum string) bool {
+ actualConf :=
configs.ConfigContext.Get(schedulerContext.GetPolicyGroup())
+ return actualConf.Checksum == checksum
Review comment:
It shouldn't be nil. Changed to one statement
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]