mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Show changed status when the status is both ok and changed
This commit is contained in:
parent
2527a78874
commit
e53c979344
@ -66,15 +66,15 @@ function HostEventService (
|
||||
obj.class = 'HostEvent-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) {
|
||||
obj.class = 'HostEvent-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') {
|
||||
obj.class = 'HostEvent-status--skipped';
|
||||
obj.status = 'skipped';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user