mirror of
https://github.com/apache/cloudstack
synced 2026-09-01 01:22:59 +00:00
bug 11798
Fix create LB sticky being called twice
This commit is contained in:
parent
eff786bcad
commit
0f6619a8ce
@ -1486,6 +1486,8 @@
|
||||
dataType: 'json',
|
||||
async: true,
|
||||
success: function(data) {
|
||||
var lbCreationComplete = false;
|
||||
|
||||
args.response.success({
|
||||
fullRefresh: true,
|
||||
_custom: {
|
||||
@ -1499,7 +1501,13 @@
|
||||
|
||||
pollAsyncJobResult({
|
||||
_custom: args._custom,
|
||||
complete: function(args) {
|
||||
complete: function(args) {
|
||||
if (lbCreationComplete) {
|
||||
return;
|
||||
}
|
||||
|
||||
lbCreationComplete = true;
|
||||
|
||||
// Create stickiness policy
|
||||
if (stickyData &&
|
||||
stickyData.methodname &&
|
||||
|
||||
Loading…
Reference in New Issue
Block a user