mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): esxi onecloud driver (#20636)
This commit is contained in:
@@ -46,9 +46,20 @@ type SESXiGuestDriver struct {
|
||||
SManagedVirtualizedGuestDriver
|
||||
}
|
||||
|
||||
type SOneCloudGuestDriver struct {
|
||||
SESXiGuestDriver
|
||||
}
|
||||
|
||||
func (self *SOneCloudGuestDriver) GetProvider() string {
|
||||
return api.CLOUD_PROVIDER_ONECLOUD
|
||||
}
|
||||
|
||||
func init() {
|
||||
driver := SESXiGuestDriver{}
|
||||
models.RegisterGuestDriver(&driver)
|
||||
|
||||
driver2 := SOneCloudGuestDriver{}
|
||||
models.RegisterGuestDriver(&driver2)
|
||||
}
|
||||
|
||||
func (self *SESXiGuestDriver) DoScheduleCPUFilter() bool { return true }
|
||||
|
||||
Reference in New Issue
Block a user