bug fixes

This commit is contained in:
Qiu Jian
2020-01-03 13:58:05 +08:00
parent 82f4885b3b
commit 4a8a79a786
13 changed files with 218 additions and 78 deletions
+3 -1
View File
@@ -297,7 +297,9 @@ func (b BaseHostDesc) GetResourceType() string {
func (b *BaseHostDesc) fillCloudProvider(host *computemodels.SHost) error {
b.Cloudprovider = host.GetCloudprovider()
b.Cloudaccount = b.Cloudprovider.GetCloudaccount()
if b.Cloudprovider != nil {
b.Cloudaccount = b.Cloudprovider.GetCloudaccount()
}
return nil
}