mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #10729 from rainzm/esxi/imagePath
fix(esxi): correctly set the imagePath outside the if block
This commit is contained in:
@@ -814,7 +814,8 @@ func (self *SHost) addDisks(ctx context.Context, dc *SDatacenter, ds *SDatastore
|
||||
size = 30 * 1024
|
||||
}
|
||||
} else {
|
||||
imagePath, err := self.FileUrlPathToDsPath(imagePath)
|
||||
var err error
|
||||
imagePath, err = self.FileUrlPathToDsPath(imagePath)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "SHost.FileUrlPathToDsPath")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user