mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 06:29:25 -02:30
Show changed status when the status is both ok and changed
This commit is contained in:
@@ -66,15 +66,15 @@ function HostEventService (
|
|||||||
obj.class = 'HostEvent-status--failed';
|
obj.class = 'HostEvent-status--failed';
|
||||||
obj.status = 'failed';
|
obj.status = 'failed';
|
||||||
}
|
}
|
||||||
// catch the changed case before ok, because both can be true
|
if (event.event === 'runner_on_ok' || event.event === 'runner_on_async_ok') {
|
||||||
|
obj.class = 'HostEvent-status--ok';
|
||||||
|
obj.status = 'ok';
|
||||||
|
}
|
||||||
|
// if both 'changed' and 'ok' are true, show 'changed' status
|
||||||
if (event.changed) {
|
if (event.changed) {
|
||||||
obj.class = 'HostEvent-status--changed';
|
obj.class = 'HostEvent-status--changed';
|
||||||
obj.status = 'changed';
|
obj.status = 'changed';
|
||||||
}
|
}
|
||||||
if (event.event === 'runner_on_ok' || event.event === 'runner_on_async_ok') {
|
|
||||||
obj.class = 'HostEvent-status--ok';
|
|
||||||
obj.status = 'ok';
|
|
||||||
}
|
|
||||||
if (event.event === 'runner_on_skipped') {
|
if (event.event === 'runner_on_skipped') {
|
||||||
obj.class = 'HostEvent-status--skipped';
|
obj.class = 'HostEvent-status--skipped';
|
||||||
obj.status = 'skipped';
|
obj.status = 'skipped';
|
||||||
|
|||||||
Reference in New Issue
Block a user