mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 13:25:02 -02:30
Cleanup linting errors
This commit is contained in:
@@ -51,30 +51,39 @@ function atRelaunchCtrl (
|
|||||||
'data.actions.POST.verbosity.choices',
|
'data.actions.POST.verbosity.choices',
|
||||||
[]
|
[]
|
||||||
).map(c => ({ label: c[1], value: c[0] }));
|
).map(c => ({ label: c[1], value: c[0] }));
|
||||||
|
const verbosity = _.find(
|
||||||
|
verbosityChoices,
|
||||||
|
item => item.value === populatedJob.verbosity
|
||||||
|
);
|
||||||
|
const jobType = _.find(
|
||||||
|
jobTypeChoices,
|
||||||
|
item => item.value === populatedJob.job_type
|
||||||
|
);
|
||||||
|
|
||||||
vm.promptData = {
|
vm.promptData = {
|
||||||
launchConf: {
|
launchConf: {
|
||||||
passwords_needed_to_start: getRelaunchRes.data.passwords_needed_to_start
|
passwords_needed_to_start:
|
||||||
|
getRelaunchRes.data.passwords_needed_to_start
|
||||||
},
|
},
|
||||||
launchOptions: launchOptions.data,
|
launchOptions: launchOptions.data,
|
||||||
job: job.id,
|
job: job.id,
|
||||||
relaunchHostType: option ? (option.name).toLowerCase() : null,
|
relaunchHostType: option ? (option.name).toLowerCase() : null,
|
||||||
prompts: {
|
prompts: {
|
||||||
credentials: {
|
credentials: {
|
||||||
value: populatedJob.summary_fields.credentials ? populatedJob.summary_fields.credentials : []
|
value: populatedJob.summary_fields.credentials || []
|
||||||
},
|
},
|
||||||
variables: {
|
variables: {
|
||||||
value: populatedJob.extra_vars
|
value: populatedJob.extra_vars
|
||||||
},
|
},
|
||||||
inventory: {
|
inventory: {
|
||||||
value: populatedJob.summary_fields.inventory ? populatedJob.summary_fields.inventory : null
|
value: populatedJob.summary_fields.inventory || null
|
||||||
},
|
},
|
||||||
verbosity: {
|
verbosity: {
|
||||||
value: _.find(verbosityChoices, item => item.value === populatedJob.verbosity),
|
value: verbosity,
|
||||||
choices: verbosityChoices
|
choices: verbosityChoices
|
||||||
},
|
},
|
||||||
jobType: {
|
jobType: {
|
||||||
value: _.find(jobTypeChoices, item => item.value === populatedJob.job_type),
|
value: jobType,
|
||||||
choices: jobTypeChoices
|
choices: jobTypeChoices
|
||||||
},
|
},
|
||||||
limit: {
|
limit: {
|
||||||
|
|||||||
Reference in New Issue
Block a user