mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-22 06:41: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
|
// Delete the repository
|
||||||
if err := dep.DefaultClient.DeleteRepository(repo); err != nil {
|
if !isDryRun {
|
||||||
return err
|
if err := dep.DefaultClient.DeleteRepository(repo); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log deletions
|
// Log deletions
|
||||||
|
Loading…
Reference in New Issue
Block a user