diff --git a/awx/ui/client/src/job-results/host-event/host-event-modal.partial.html b/awx/ui/client/src/job-results/host-event/host-event-modal.partial.html
index cf9dc67ac4..96676dc56a 100644
--- a/awx/ui/client/src/job-results/host-event/host-event-modal.partial.html
+++ b/awx/ui/client/src/job-results/host-event/host-event-modal.partial.html
@@ -33,7 +33,7 @@
MODULE
- {{module_name}}
+ {{module_name}}
diff --git a/awx/ui/client/src/job-results/host-event/host-event.block.less b/awx/ui/client/src/job-results/host-event/host-event.block.less
index e5797643b3..84fb77c1f6 100644
--- a/awx/ui/client/src/job-results/host-event/host-event.block.less
+++ b/awx/ui/client/src/job-results/host-event/host-event.block.less
@@ -126,6 +126,9 @@
max-width: 13em;
flex: 0 1 13em;
}
+.HostEvent-field--monospaceContent{
+ font-family: monospace;
+}
.HostEvent-details--left, .HostEvent-details--right{
flex: 1 1 47%;
}
@@ -175,7 +178,7 @@
border-right: 1px solid #ccc;
border-bottom-left-radius: 5px;
color: #999;
- font-family: monospace;
+ font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
position: fixed;
padding: 4px 3px 0 5px;
text-align: right;
diff --git a/awx/ui/client/src/job-results/host-event/host-event.controller.js b/awx/ui/client/src/job-results/host-event/host-event.controller.js
index 6015dd3a63..398ae70ab4 100644
--- a/awx/ui/client/src/job-results/host-event/host-event.controller.js
+++ b/awx/ui/client/src/job-results/host-event/host-event.controller.js
@@ -52,9 +52,9 @@
// grab standard out & standard error if present from the host
// event's "res" object, for things like Ansible modules
try{
- $scope.module_name = hostEvent.event_data.res.invocation.module_name || hostEvent.event_data.task_action || "No result found";
- $scope.stdout = hostEvent.event_data.res.stdout;
- $scope.stderr = hostEvent.event_data.res.stderr;
+ $scope.module_name = hostEvent.event_data.task_action || "No result found";
+ $scope.stdout = hostEvent.event_data.res.stdout ? hostEvent.event_data.res.stdout : hostEvent.event_data.res.stdout === "" ? " " : undefined;
+ $scope.stderr = hostEvent.event_data.res.stderr ? hostEvent.event_data.res.stderr : hostEvent.event_data.res.stderr === "" ? " " : undefined;
$scope.json = hostEvent.event_data.res;
}
catch(err){