From 7b44c97a25bdfd715d425a3f952da0fd1628a717 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 fa22811cd8b..a315492c6a2 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -12030,6 +12030,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 });