mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-22 23:51:27 +01:00
fix rule conflict, id error
Signed-off-by: Ziming Zhang <zziming@vmware.com> Change-Id: I379f3c29cee742d346fb57ade397be64fd76f59d
This commit is contained in:
parent
98ca45c93a
commit
4dc6f12784
@ -238,7 +238,7 @@ func (r *RetentionAPI) checkRuleConflict(p *policy.Metadata) error {
|
||||
if old, exists := temp[string(bs)]; exists {
|
||||
return fmt.Errorf("rule %d is conflict with rule %d", n, old)
|
||||
}
|
||||
temp[string(bs)] = tid
|
||||
temp[string(bs)] = n
|
||||
rule.ID = tid
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user