mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
bug fixes
This commit is contained in:
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user