mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
bugfix
This commit is contained in:
@@ -59,8 +59,8 @@ type ComputeOptions struct {
|
||||
DefaultMaxManualSnapshotCount int `default:"2" help:"Per Disk max manual snapshot count, default 2"`
|
||||
|
||||
// sku sync
|
||||
SyncSkusDay int `default:"1" help:"Days auto snapshot disks, default 1 day"`
|
||||
SyncSkusHour int `default:"3" help:"What hour take sanpshot, default 03:00"`
|
||||
SyncSkusDay int `default:"1" help:"Days auto sync skus data, default 1 day"`
|
||||
SyncSkusHour int `default:"3" help:"What hour start sync skus, default 03:00"`
|
||||
|
||||
// aws instance type file
|
||||
DefaultAwsInstanceTypeFile string `default:"/etc/yunion/aws_instance_types.json" help:"aws instance type json file"`
|
||||
|
||||
@@ -26,13 +26,13 @@ func init() {
|
||||
[]string{})}
|
||||
|
||||
ServerSkus = ServerSkusManager{NewComputeManager("serversku", "serverskus",
|
||||
[]string{"ID", "Name", "Instance_type_family", "Instance_type_category", "Cpu_core_count", "Memmory_size_mb", "Os_name", "Sys_disk_resizable", "Sys_disk_type",
|
||||
[]string{"ID", "Name", "Instance_type_family", "Instance_type_category", "Cpu_core_count", "Memory_size_mb", "Os_name", "Sys_disk_resizable", "Sys_disk_type",
|
||||
"Sys_disk_min_size_mb", "Sys_disk_max_size_mb", "Attached_disk_type", "Attached_disk_size_gb", "Attached_disk_count", "Data_disk_types", "Data_disk_max_count", "Nic_max_count",
|
||||
"Cloudregion_id", "Zone_id"},
|
||||
[]string{})}
|
||||
|
||||
register(&CloudmetaSkus)
|
||||
register(&ServerSkus)
|
||||
registerCompute(&ServerSkus)
|
||||
}
|
||||
|
||||
func (self *SkusManager) GetSkuRate(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error) {
|
||||
|
||||
Reference in New Issue
Block a user