avoid util package depends on security package

This commit is contained in:
Chris Lu
2019-02-16 12:23:35 -08:00
parent 31aa60ce05
commit 98a03b38e5
4 changed files with 4 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ func ReplicatedDelete(masterNode string, store *storage.Store,
if needToReplicate { //send to other replica locations
if r.FormValue("type") != "replicate" {
if err = distributedOperation(masterNode, store, volumeId, func(location operation.Location) error {
return util.Delete("http://"+location.Url+r.URL.Path+"?type=replicate", jwt)
return util.Delete("http://"+location.Url+r.URL.Path+"?type=replicate", string(jwt))
}); err != nil {
ret = 0
}