This commit is contained in:
TangBin
2018-11-30 10:26:23 +08:00
parent 4cb87d487e
commit 36e58a813d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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"`
+2 -2
View 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) {