dont set the host for the datastore upload
This commit is contained in:
parent
077d34f12c
commit
9895f90451
|
@ -88,15 +88,6 @@ func (ds *Datastore) ResolvePath(path string) string {
|
||||||
func (ds *Datastore) UploadFile(src, dst string, host string) error {
|
func (ds *Datastore) UploadFile(src, dst string, host string) error {
|
||||||
p := soap.DefaultUpload
|
p := soap.DefaultUpload
|
||||||
ctx := ds.driver.ctx
|
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)
|
return ds.ds.UploadFile(ctx, src, dst, &p)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue