agent: ensure service maintenance checks for matching partitions ahead of other errors (#11788)

This matches behavior in most other agent api endpoints.
pull/11793/head
R.B. Boyer 3 years ago committed by GitHub
parent c410d295be
commit bb75e63eb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1323,6 +1323,10 @@ func (s *HTTPHandlers) AgentServiceMaintenance(resp http.ResponseWriter, req *ht
sid.Normalize()
if !s.validateRequestPartition(resp, &sid.EnterpriseMeta) {
return nil, nil
}
if err := s.agent.vetServiceUpdateWithAuthorizer(authz, sid); err != nil {
return nil, err
}

Loading…
Cancel
Save