Merge pull request #2529 from anoek/2415

Hide benign credential 403s from inventory updates
This commit is contained in:
Akita Noek 2016-06-21 09:31:34 -04:00 committed by GitHub
commit c20e9baa55
2 changed files with 7 additions and 2 deletions

View File

@ -26,6 +26,9 @@
}
})
.error(function(data, status) {
if (status === 403 && params.ignore_403) {
return;
}
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
msg: 'Failed to retrieve ' + url + '. GET returned: ' + status });
});

View File

@ -107,7 +107,8 @@ export function JobStdoutController ($rootScope, $scope, $state, $stateParams,
LookUpName({
scope: $scope,
scope_var: 'credential',
url: GetBasePath('credentials') + data.credential + '/'
url: GetBasePath('credentials') + data.credential + '/',
ignore_403: true
});
}
@ -131,7 +132,8 @@ export function JobStdoutController ($rootScope, $scope, $state, $stateParams,
LookUpName({
scope: $scope,
scope_var: 'cloud_credential',
url: GetBasePath('credentials') + data.cloud_credential + '/'
url: GetBasePath('credentials') + data.cloud_credential + '/',
ignore_403: true
});
}