mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Merge pull request #2529 from anoek/2415
Hide benign credential 403s from inventory updates
This commit is contained in:
commit
c20e9baa55
@ -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 });
|
||||
});
|
||||
|
||||
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user