mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-21 14:21:36 +01:00
fix bug: dry run is missing when deleting ropo
Signed-off-by: Steven Zou <szou@vmware.com>
This commit is contained in:
parent
8cc9314984
commit
49c1b2d4f1
@ -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…
Reference in New Issue
Block a user