mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-2569: UI > Infrastructure > zone > physical network > VNMC provider > fix a bug that queryAsyncJobResult API kept being called even after the async job was finished.
This commit is contained in:
parent
9bb0eda5a1
commit
ab91def10c
@ -380,11 +380,10 @@
|
||||
if (result.jobstatus == 0) {
|
||||
return; //Job has not completed
|
||||
} else {
|
||||
clearInterval(enableVnmcProviderIntervalID);
|
||||
if (result.jobstatus == 1) {
|
||||
args.response.success({
|
||||
data: {
|
||||
state: 'Enabled'
|
||||
}
|
||||
data: result.jobresult.networkserviceprovider
|
||||
});
|
||||
} else if (result.jobstatus == 2) {
|
||||
args.response.error(_s(result.jobresult.errortext));
|
||||
@ -419,12 +418,6 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
notification: {
|
||||
poll: function (args) {
|
||||
args.complete();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -482,9 +475,7 @@
|
||||
clearInterval(disableVnmcProviderIntervalID);
|
||||
if (result.jobstatus == 1) {
|
||||
args.response.success({
|
||||
data: {
|
||||
state: 'Disabled'
|
||||
}
|
||||
data: result.jobresult.networkserviceprovider
|
||||
});
|
||||
} else if (result.jobstatus == 2) {
|
||||
args.response.error(_s(result.jobresult.errortext));
|
||||
@ -519,12 +510,6 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
notification: {
|
||||
poll: function (args) {
|
||||
args.complete();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user