mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-01 04:21:36 +01:00
Fix retention bug
Fix retention bug that passing the wrong rules to retention job Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
b64532bf09
commit
05934d1818
@ -187,7 +187,8 @@ func (l *launcher) Launch(ply *policy.Metadata, executionID int64, isDryRun bool
|
||||
Algorithm: ply.Algorithm,
|
||||
}
|
||||
}
|
||||
repositoryRules[reposit].Rules = append(repositoryRules[reposit].Rules, &rule)
|
||||
r := rule
|
||||
repositoryRules[reposit].Rules = append(repositoryRules[reposit].Rules, &r)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user