mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 09:08:26 +01:00
fix deleted project error when to migrate quota
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
6198ed2634
commit
dfa4301b21
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user