cloudstack 3.0 UI - autoscale - existing LB - configure AutoScale - fix a JS bug "otherdeployparams is undefined".

This commit is contained in:
Jessica Wang 2012-08-07 14:09:40 -07:00 committed by Vijay Venkatachalam
parent 45f8b8f553
commit b8d006c8f5

View File

@ -142,6 +142,7 @@
var diskOfferingId, securityGroups;
var otherdeployparams = autoscaleVmProfile.otherdeployparams;
if(otherdeployparams != null && otherdeployparams.length > 0) {
var array1 = otherdeployparams.split('&');
$(array1).each(function(){
var array2 = this.split('=');
@ -150,6 +151,7 @@
if(array2[0] == 'securitygroupids')
securityGroups = array2[1];
});
}
var originalAutoscaleData = {
templateNames: autoscaleVmProfile.templateid,