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