Merge pull request #4755 from rainzm/bugfix/esxi_vm_path

fix(esxi-agent): Adjust the VM Path in Datastore
This commit is contained in:
yunion-ci-robot
2020-01-09 10:27:57 +08:00
committed by GitHub
+1 -1
View File
@@ -611,7 +611,7 @@ func (self *SHost) DoCreateVM(ctx context.Context, ds *SDatastore, data *jsonuti
if data.Contains("os_name") {
osName, _ = data.GetString("os_name")
}
datastorePath := fmt.Sprintf("[%s] %s", ds.GetRelName(), name)
datastorePath := fmt.Sprintf("[%s] ", ds.GetRelName())
if data.Contains("mem") {
memoryMB, _ = data.Int("mem")
}