support multiple policies for temporary users (#9550)

This commit is contained in:
Harshavardhana
2020-05-11 13:04:11 -07:00
committed by GitHub
parent 337c2a7cb4
commit f8edc233ab
3 changed files with 86 additions and 29 deletions

View File

@@ -1649,7 +1649,7 @@ func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
if err == nil {
return ErrNone
}
// Verify if the underlying error is signature mismatch.
switch err {
case errInvalidArgument:
apiErr = ErrAdminInvalidArgument