mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cloudstack 3.0 UI - autoscale - existing LB - configure AutoScale - fix a JS bug "otherdeployparams is undefined".
This commit is contained in:
parent
45f8b8f553
commit
b8d006c8f5
@ -142,14 +142,16 @@
|
|||||||
|
|
||||||
var diskOfferingId, securityGroups;
|
var diskOfferingId, securityGroups;
|
||||||
var otherdeployparams = autoscaleVmProfile.otherdeployparams;
|
var otherdeployparams = autoscaleVmProfile.otherdeployparams;
|
||||||
var array1 = otherdeployparams.split('&');
|
if(otherdeployparams != null && otherdeployparams.length > 0) {
|
||||||
$(array1).each(function(){
|
var array1 = otherdeployparams.split('&');
|
||||||
var array2 = this.split('=');
|
$(array1).each(function(){
|
||||||
if(array2[0] == 'diskofferingid')
|
var array2 = this.split('=');
|
||||||
diskOfferingId= array2[1];
|
if(array2[0] == 'diskofferingid')
|
||||||
if(array2[0] == 'securitygroupids')
|
diskOfferingId= array2[1];
|
||||||
securityGroups = array2[1];
|
if(array2[0] == 'securitygroupids')
|
||||||
});
|
securityGroups = array2[1];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
var originalAutoscaleData = {
|
var originalAutoscaleData = {
|
||||||
templateNames: autoscaleVmProfile.templateid,
|
templateNames: autoscaleVmProfile.templateid,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user