cloudstack 3.0 UI - autoscale - edit mode - API calls end after updating VM profile.

This commit is contained in:
Jessica Wang 2012-08-01 09:39:44 -07:00
parent 7e1c434f20
commit 9d23cd672e
1 changed files with 6 additions and 1 deletions

View File

@ -1027,7 +1027,12 @@
clearInterval(autoscaleVmProfileTimer);
if (result.jobstatus == 1) {
scaleVmProfileResponse = result.jobresult.autoscalevmprofile;
loadBalancer(args);
if(!('multiRules' in args.context)) { //from a new LB
loadBalancer(args);
}
else { //from an existing LB
args.response.success(); //modification completes here
}
}
else if (result.jobstatus == 2) {
args.response.error(_s(result.jobresult.errortext));