summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE-common/client/app/services/applications
diff options
context:
space:
mode:
authorhb123f <hbindu@research.att.com>2019-03-20 12:20:44 -0400
committerhb123f <hbindu@research.att.com>2019-03-20 14:13:55 -0400
commita70761c096192e38800bf38d6c7f61f52bf72007 (patch)
treecdc5264cec030bc7e677ff1d74c939c56ee51d0d /ecomp-portal-FE-common/client/app/services/applications
parent3992004ee5f2b0b1635e2aef19c375db87079b52 (diff)
CADI AAF Integration and merging the code
Issue-ID: PORTAL-319 CADI AAF Integration and code merge Change-Id: I6e44f3b2741858d8d403b77a49ec9a0153084801 Signed-off-by: hb123f <hbindu@research.att.com>
Diffstat (limited to 'ecomp-portal-FE-common/client/app/services/applications')
-rw-r--r--ecomp-portal-FE-common/client/app/services/applications/applications.service.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecomp-portal-FE-common/client/app/services/applications/applications.service.js b/ecomp-portal-FE-common/client/app/services/applications/applications.service.js
index 75fc7fec..c595c71a 100644
--- a/ecomp-portal-FE-common/client/app/services/applications/applications.service.js
+++ b/ecomp-portal-FE-common/client/app/services/applications/applications.service.js
@@ -639,8 +639,8 @@
}).then( res => {
// If response comes back as a redirected HTML page which IS NOT a success
// But don't declare an empty list to be an error.
- if (res == null || res.data == null || _this13.utilsService.isValidJSON(res.data) == false) {
- deferred.reject("ApplicationsService::syncRolesEcompFromExtAuthSystem Failed");
+ if (res == null || res.data == null || _this13.utilsService.isValidJSON(res.data) == false || res.data.status == 'ERROR') {
+ deferred.reject("ApplicationsService::syncRolesEcompFromExtAuthSystem Failed" + res.data.message);
} else {
deferred.resolve(res);
}