mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Merge pull request #2529 from anoek/2415
Hide benign credential 403s from inventory updates
This commit is contained in:
@@ -26,6 +26,9 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.error(function(data, status) {
|
.error(function(data, status) {
|
||||||
|
if (status === 403 && params.ignore_403) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
|
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
|
||||||
msg: 'Failed to retrieve ' + url + '. GET returned: ' + status });
|
msg: 'Failed to retrieve ' + url + '. GET returned: ' + status });
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -107,7 +107,8 @@ export function JobStdoutController ($rootScope, $scope, $state, $stateParams,
|
|||||||
LookUpName({
|
LookUpName({
|
||||||
scope: $scope,
|
scope: $scope,
|
||||||
scope_var: 'credential',
|
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({
|
LookUpName({
|
||||||
scope: $scope,
|
scope: $scope,
|
||||||
scope_var: 'cloud_credential',
|
scope_var: 'cloud_credential',
|
||||||
url: GetBasePath('credentials') + data.cloud_credential + '/'
|
url: GetBasePath('credentials') + data.cloud_credential + '/',
|
||||||
|
ignore_403: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user