dont set the host for the datastore upload

This commit is contained in:
Joshua Foster 2020-04-21 17:58:24 -04:00 committed by Megan Marsh
parent 077d34f12c
commit 9895f90451
1 changed files with 0 additions and 9 deletions

View File

@ -88,15 +88,6 @@ func (ds *Datastore) ResolvePath(path string) string {
func (ds *Datastore) UploadFile(src, dst string, host string) error {
p := soap.DefaultUpload
ctx := ds.driver.ctx
if host != "" {
h, err := ds.driver.FindHost(host)
if err != nil {
return err
}
ctx = ds.ds.HostContext(ctx, h.host)
}
return ds.ds.UploadFile(ctx, src, dst, &p)
}