mirror of
https://github.com/versity/versitygw.git
synced 2026-09-05 23:57:05 +00:00
feat: implementes unit tests for all the bucket action controllers.
This commit is contained in:
+1
-1
@@ -385,7 +385,7 @@ func CheckIfAccountsExist(accs []string, iam IAMService) ([]string, error) {
|
||||
for _, acc := range accs {
|
||||
_, err := iam.GetUserAccount(acc)
|
||||
if err != nil {
|
||||
if err == ErrNoSuchUser {
|
||||
if err == ErrNoSuchUser || err == s3err.GetAPIError(s3err.ErrAdminUserNotFound) {
|
||||
result = append(result, acc)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user