mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Bug #4118: Fix cost for services
(cherry picked from commit bdc3a4978e)
This commit is contained in:
1 parent
b5364b3a69
commit
36de6b8078
1 file changed
+2
-2
@@ -247,7 +247,7 @@ define(function(require) {
|
||||
var capacity = template_json.VMTEMPLATE.TEMPLATE;
|
||||
var cost = 0;
|
||||
if (capacity.CPU_COST || capacity.MEMORY_COST && Config.isFeatureEnabled("showback")) {
|
||||
$(".provision_create_service_cost_div").show();
|
||||
$(".provision_create_service_cost_div", context).show();
|
||||
|
||||
if (capacity.CPU && capacity.CPU_COST) {
|
||||
cost += capacity.CPU * capacity.CPU_COST
|
||||
@@ -263,7 +263,7 @@ define(function(require) {
|
||||
var cost_value = cost*parseInt(role_template.cardinality);
|
||||
$(".cost_value", context).html(cost_value.toFixed(2));
|
||||
} else {
|
||||
$(".provision_create_service_cost_div").hide();
|
||||
$(".provision_create_service_cost_div", context).hide();
|
||||
}
|
||||
|
||||
if (max_vms > min_vms) {
|
||||
|
||||
Reference in new issue
Block a user