mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Fixed bug relaunching job on successful/failed hosts
This commit is contained in:
parent
b919c36994
commit
2ccbf5a817
@ -101,9 +101,19 @@ function atRelaunchCtrl (
|
||||
};
|
||||
});
|
||||
} else {
|
||||
jobObj.postRelaunch({
|
||||
id: vm.job.id
|
||||
}).then((launchRes) => {
|
||||
|
||||
let launchParams = {
|
||||
id: vm.job.id,
|
||||
};
|
||||
|
||||
if (_.has(option, 'name')) {
|
||||
launchParams.relaunchData = {
|
||||
hosts: (option.name).toLowerCase()
|
||||
};
|
||||
}
|
||||
|
||||
jobObj.postRelaunch(launchParams)
|
||||
.then((launchRes) => {
|
||||
if (!$state.includes('jobs')) {
|
||||
$state.go('jobResult', { id: launchRes.data.id }, { reload: true });
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user