From 017e650b5b6c71f56aecc444ea5020cf3c18085c Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Fri, 5 May 2017 18:11:16 +0800 Subject: [PATCH] fix bug --- src/jobservice/replication/delete.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jobservice/replication/delete.go b/src/jobservice/replication/delete.go index 9a237b78d..0f628c9ac 100644 --- a/src/jobservice/replication/delete.go +++ b/src/jobservice/replication/delete.go @@ -90,7 +90,7 @@ func (d *Deleter) enter() (string, error) { // delete repository if len(d.tags) == 0 { - u := url + "?repo_name=" + d.repository + u := url + d.repository + "/tags" if err := del(u, d.dstUsr, d.dstPwd, d.insecure); err != nil { if err == errNotFound { d.logger.Warningf("repository %s does not exist on %s", d.repository, d.dstURL) @@ -109,7 +109,7 @@ func (d *Deleter) enter() (string, error) { // delele tags for _, tag := range d.tags { - u := url + "?repo_name=" + d.repository + "&tag=" + tag + u := url + d.repository + "/tags/" + tag if err := del(u, d.dstUsr, d.dstPwd, d.insecure); err != nil { if err == errNotFound { d.logger.Warningf("repository %s does not exist on %s", d.repository, d.dstURL)