Merge pull request #8784 from wy65701436/fix-migrator

fix deleted project error when to migrate quota
This commit is contained in:
Wang Yan 2019-08-22 16:34:49 +08:00 committed by GitHub
commit 371a306dcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,9 @@ func (rm *Migrator) Dump() ([]quota.ProjectInfo, error) {
log.Errorf("failed to get project %s: %v", projectName, err)
continue
}
if pro == nil {
continue
}
_, exist := repoMap[pro.Name]
if !exist {
repoMap[pro.Name] = []string{item}