use jquery promise api instead of synchroize ajax invocation

Change-Id: I776069e9f7b87da6b7840f90507b67152e4c0272
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js
index d78ef37..54be02b 100644
--- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js
+++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js
@@ -110,13 +110,13 @@
 function renderTemplateParametersTab() {
     $.when(
         fetchTemplateParameterDefinitions(templateParameters),
-        fetchVimInfo2()
+        fetchVimInfo()
     ).then(function(templateParameterResponse, vimsInfoResponse) {
         templateParameters = translateToTemplateParameters(templateParameterResponse[0].inputs);
         var vims = translateToVimInfo(vimsInfoResponse[0]);
         var components = transfromToComponents(templateParameters.parameters, vims);
         document.getElementById("parameterTab").innerHTML = components;
-    })
+    });
 }
 
 function fetchTemplateParameterDefinitions(parameters) {
@@ -128,7 +128,7 @@
     });
 }
 
-function fetchVimInfo2() {
+function fetchVimInfo() {
     var vimQueryUri = 'http://localhost:8080/openoapi/extsys/v1/vims';
     return $.ajax({
         type: "GET",