Updated Branches:
  refs/heads/4.2 5e9dea1fc -> 721567754

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/72156775
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/72156775
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/72156775

Branch: refs/heads/4.2
Commit: 72156775437c64006db722bbebeca20b8780d2fd
Parents: 5e9dea1
Author: Jessica Wang <[email protected]>
Authored: Wed Nov 6 12:21:40 2013 -0800
Committer: Jessica Wang <[email protected]>
Committed: Wed Nov 6 12:21:40 2013 -0800

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


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

Reply via email to