Skip to content

Commit

Permalink
Fixed 'si page throws an error in case of vcenter mode'
Browse files Browse the repository at this point in the history
Added a check to not issue nova call in case of vcenter.

Change-Id: I602a9b76a26f60c902b5fa4e6b807a07724cced9
Closes-bug: #1736653
(cherry picked from commit 91038a5)
  • Loading branch information
sbavanasi authored and manojgn committed May 4, 2018
1 parent c376170 commit 964926c
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -432,7 +432,7 @@ define([
totalActiveCnt};
},
getVlRemoteGLConfig: function (selectedProject) {
var vlRemoteGLConfig = [{
var openstackVLRemoteConfig = [{
getAjaxConfig: function (resultJSON) {
var lazyAjaxConfig = {
url: ctwc.get(ctwc.URL_GET_SERVICE_INSTS_NOVA_STATUS,
Expand Down Expand Up @@ -492,8 +492,8 @@ define([
}
}
}
},
{
}];
var vlRemoteGLConfig = [{
getAjaxConfig: function(response) {
var lazyAjaxConfig = {
url: ctwc.get(ctwc.URL_GET_SERVICE_INST_TMPLTS,
Expand Down Expand Up @@ -572,6 +572,9 @@ define([
self.svcInstProjRole = roles;
}
}];
if(!isVCenter()) {
vlRemoteGLConfig = openstackVLRemoteConfig.concat(vlRemoteGLConfig);
}
return vlRemoteGLConfig;
}
});
Expand Down

0 comments on commit 964926c

Please sign in to comment.