Updated Branches:
  refs/heads/master 2018e1a58 -> 7b44c97a2

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."


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7b44c97a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7b44c97a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7b44c97a

Branch: refs/heads/master
Commit: 7b44c97a25bdfd715d425a3f952da0fd1628a717
Parents: 2018e1a
Author: Jessica Wang <[email protected]>
Authored: Wed Nov 6 12:21:40 2013 -0800
Committer: Jessica Wang <[email protected]>
Committed: Wed Nov 6 12:31:27 2013 -0800

----------------------------------------------------------------------
 ui/scripts/system.js | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7b44c97a/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index fa22811..a315492 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
                                                     });

Reply via email to