mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Fix peer server update failure (#9824)
When updating all servers following the constructions of mc update, only the endpoint server will be updated successfully. All the other peer servers' updating failed due to the error below: -------------------------------------------------------------------------- parsing time "2006-01-02T15:04:05Z07:00" as "<release version>": cannot parse "-01-02T15:04:05Z07:00" as "0-" --------------------------------------------------------------------------
This commit is contained in:
parent
e11e4bcbc7
commit
535efd34a0
@ -770,7 +770,7 @@ func (s *peerRESTServer) ServerUpdateHandler(w http.ResponseWriter, r *http.Requ
|
||||
var latestReleaseTime time.Time
|
||||
var err error
|
||||
if latestRelease := vars[peerRESTLatestRelease]; latestRelease != "" {
|
||||
latestReleaseTime, err = time.Parse(latestRelease, time.RFC3339)
|
||||
latestReleaseTime, err = time.Parse(time.RFC3339, latestRelease)
|
||||
if err != nil {
|
||||
s.writeErrorResponse(w, err)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user