diff --git a/service/instance.go b/service/instance.go index 458056d..024d113 100644 --- a/service/instance.go +++ b/service/instance.go @@ -569,7 +569,7 @@ type RunInstancesInput struct { // CPUMax's available values: 1, 2, 4, 8, 16 CPUMax *int `json:"cpu_max" name:"cpu_max" location:"params"` // CPUModel's available values: Westmere, SandyBridge, IvyBridge, Haswell, Broadwell - CPUModel *string `json:"cpu_model" name:"cpu_model" default:"Westmere" location:"params"` + CPUModel *string `json:"cpu_model" name:"cpu_model" location:"params"` Gpu *int `json:"gpu" name:"gpu" default:"0" location:"params"` Hostname *string `json:"hostname" name:"hostname" location:"params"` ImageID *string `json:"image_id" name:"image_id" location:"params"` // Required @@ -643,25 +643,25 @@ func (v *RunInstancesInput) Validate() error { } } - if v.CPUModel != nil { - cpuModelValidValues := []string{"Westmere", "SandyBridge", "IvyBridge", "Haswell", "Broadwell"} - cpuModelParameterValue := fmt.Sprint(*v.CPUModel) - - cpuModelIsValid := false - for _, value := range cpuModelValidValues { - if value == cpuModelParameterValue { - cpuModelIsValid = true - } - } - - if !cpuModelIsValid { - return errors.ParameterValueNotAllowedError{ - ParameterName: "CPUModel", - ParameterValue: cpuModelParameterValue, - AllowedValues: cpuModelValidValues, - } - } - } + //if v.CPUModel != nil { + // cpuModelValidValues := []string{"Westmere", "SandyBridge", "IvyBridge", "Haswell", "Broadwell"} + // cpuModelParameterValue := fmt.Sprint(*v.CPUModel) + // + // cpuModelIsValid := false + // for _, value := range cpuModelValidValues { + // if value == cpuModelParameterValue { + // cpuModelIsValid = true + // } + // } + // + // if !cpuModelIsValid { + // return errors.ParameterValueNotAllowedError{ + // ParameterName: "CPUModel", + // ParameterValue: cpuModelParameterValue, + // AllowedValues: cpuModelValidValues, + // } + // } + //} if v.ImageID == nil { return errors.ParameterRequiredError{