mirror of https://github.com/apache/cloudstack.git
CS-15775:Creation of Auto scale configuration through UI fails while creating autoscale profile due to args.context.ipAddresses is undefined
This commit is contained in:
parent
eae9ddfe1f
commit
a17e0117e5
|
|
@ -928,9 +928,10 @@
|
|||
privateport: args.formData.privateport,
|
||||
publicport: args.formData.publicport,
|
||||
openfirewall: false,
|
||||
networkid: networkid,
|
||||
publicipid: args.context.ipAddresses[0].id
|
||||
networkid: networkid
|
||||
};
|
||||
if(args.context.ipAddresses != undefined)
|
||||
data = $.extend(data, {publicipid: args.context.ipAddresses[0].id});
|
||||
|
||||
$.ajax({
|
||||
url: createURL('createLoadBalancerRule'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue