From e53c9793441b4eb80525d9f1bf16e0ebe0d7aa74 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Tue, 10 Sep 2019 17:09:25 -0400 Subject: [PATCH] Show changed status when the status is both ok and changed --- .../features/output/host-event/host-event.service.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/awx/ui/client/features/output/host-event/host-event.service.js b/awx/ui/client/features/output/host-event/host-event.service.js index 1e0588b329..4163cb2e95 100644 --- a/awx/ui/client/features/output/host-event/host-event.service.js +++ b/awx/ui/client/features/output/host-event/host-event.service.js @@ -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';