mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
remove duplicate JT credential fetch
This commit is contained in:
committed by
Shane McDonald
parent
0be68fe84f
commit
55b5060944
@@ -72,16 +72,7 @@ function Template({ setBreadcrumb }) {
|
|||||||
surveyConfiguration = survey;
|
surveyConfiguration = survey;
|
||||||
}
|
}
|
||||||
if (data.summary_fields.credentials) {
|
if (data.summary_fields.credentials) {
|
||||||
const params = {
|
data.summary_fields.credentials = defaultCredentials;
|
||||||
page: 1,
|
|
||||||
page_size: 200,
|
|
||||||
order_by: 'name',
|
|
||||||
};
|
|
||||||
const {
|
|
||||||
data: { results },
|
|
||||||
} = await JobTemplatesAPI.readCredentials(data.id, params);
|
|
||||||
|
|
||||||
data.summary_fields.credentials = results;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actions.data.actions.PUT) {
|
if (actions.data.actions.PUT) {
|
||||||
|
|||||||
Reference in New Issue
Block a user