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:
Wenkai Yin 2019-07-31 19:53:04 +08:00
parent b64532bf09
commit 05934d1818

View File

@ -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)
}
}