diff --git a/ui/src/views/tools/ImportUnmanagedInstance.vue b/ui/src/views/tools/ImportUnmanagedInstance.vue index ca58bdd7327c..7e89d48abb87 100644 --- a/ui/src/views/tools/ImportUnmanagedInstance.vue +++ b/ui/src/views/tools/ImportUnmanagedInstance.vue @@ -180,7 +180,7 @@ :cpuSpeed="getCPUSpeed()" @update-iops-value="updateFieldValue" @update-compute-cpunumber="updateFieldValue" - @update-compute-cpuspeed="updateFieldValue" + @update-compute-cpuspeed="updateCpuSpeed" @update-compute-memory="updateFieldValue" />
@@ -595,6 +595,15 @@ export default { this.selectMatchingComputeOffering() }) }, + updateCpuSpeed (name, value) { + if (this.computeOffering.iscustomized) { + if (this.computeOffering.serviceofferingdetails) { + this.updateFieldValue(this.cpuSpeedKey, this.computeOffering.cpuspeed) + } else { + this.updateFieldValue(this.cpuSpeedKey, value) + } + } + }, updateFieldValue (name, value) { this.form[name] = value },