mirror of
https://github.com/goharbor/harbor
synced 2025-04-25 19:55:09 +00:00
Merge pull request #8505 from steven-zou/fix/retention_bug_dryrun
fix bug: dry run is missing when deleting ropo
This commit is contained in:
commit
35f71d1bc6
@ -74,8 +74,10 @@ func (drj *DelRepoJob) Run(ctx job.Context, params job.Parameters) error {
|
||||
}
|
||||
|
||||
// Delete the repository
|
||||
if err := dep.DefaultClient.DeleteRepository(repo); err != nil {
|
||||
return err
|
||||
if !isDryRun {
|
||||
if err := dep.DefaultClient.DeleteRepository(repo); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
// Log deletions
|
||||
|
Loading…
x
Reference in New Issue
Block a user