mirror of
https://github.com/goharbor/harbor.git
synced 2024-08-25 21:43:02 +02: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,9 +74,11 @@ func (drj *DelRepoJob) Run(ctx job.Context, params job.Parameters) error {
|
|||
}
|
||||
|
||||
// Delete the repository
|
||||
if !isDryRun {
|
||||
if err := dep.DefaultClient.DeleteRepository(repo); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
// Log deletions
|
||||
logDeletions(myLogger, allArtifacts)
|
||||
|
|
Loading…
Reference in New Issue
Block a user