mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-02 23:37:38 +02:00
Merge pull request #8784 from wy65701436/fix-migrator
fix deleted project error when to migrate quota
This commit is contained in:
commit
371a306dcf
@ -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