fix deleted project error when to migrate quota

Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
wang yan 2019-08-22 14:51:24 +08:00
parent 6198ed2634
commit dfa4301b21

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}