From 72156775437c64006db722bbebeca20b8780d2fd Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 6 Nov 2013 12:21:40 -0800 Subject: [PATCH] CLOUDSTACK-5037: UI > Infrastructure > clusters > Settings tab > when "cpu.overprovisioning.factor" or "mem.overprovisioning.factor" is changed, pop up a warning message "Please note - you are changing the over provisioning factor for a cluster with vms running. Please refer to the admin guide to understand the capacity calculation." --- ui/scripts/system.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index f05e1ac8acb..6bd51e6cc80 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -11377,6 +11377,13 @@ data: data, success: function(json) { var item = json.updateconfigurationresponse.configuration; + + if (args.data.jsonObj.name == 'cpu.overprovisioning.factor' || args.data.jsonObj.name == 'mem.overprovisioning.factor') { + cloudStack.dialog.notice({ + message: 'Please note - you are changing the over provisioning factor for a cluster with vms running. Please refer to the admin guide to understand the capacity calculation.' + }); + } + args.response.success({ data: item });