diff --git a/awx/ui/client/src/standard-out/standard-out-factories/lookup-name.factory.js b/awx/ui/client/src/standard-out/standard-out-factories/lookup-name.factory.js index 76897fc121..40d32b3f8d 100644 --- a/awx/ui/client/src/standard-out/standard-out-factories/lookup-name.factory.js +++ b/awx/ui/client/src/standard-out/standard-out-factories/lookup-name.factory.js @@ -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 }); }); diff --git a/awx/ui/client/src/standard-out/standard-out.controller.js b/awx/ui/client/src/standard-out/standard-out.controller.js index ed11ce4f44..805200201e 100644 --- a/awx/ui/client/src/standard-out/standard-out.controller.js +++ b/awx/ui/client/src/standard-out/standard-out.controller.js @@ -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 }); }