mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Fix for host events viewer
the host events had logic that was expecting to act on an array, but was not receiving an array
This commit is contained in:
parent
17b921db63
commit
4cbf8e0c17
@ -497,6 +497,9 @@ export default
|
||||
// only show cmd if it's a cmd that was run
|
||||
if (!EventsViewerForm.fields[key] && obj[key].length > 0) {
|
||||
// include the label head Shell Command instead of CMD in the modal
|
||||
if(typeof(obj[key]) === 'string'){
|
||||
obj[key] = [obj[key]];
|
||||
}
|
||||
string_cmd += obj[key].join(" ");
|
||||
h = parseItem(string_cmd, key, "Shell Command");
|
||||
if (h) {
|
||||
@ -506,6 +509,9 @@ export default
|
||||
}
|
||||
} else if (key === 'warnings') {
|
||||
if (!EventsViewerForm.fields[key] && obj[key].length > 0) {
|
||||
if(typeof(obj[key]) === 'string'){
|
||||
obj[key] = [obj[key]];
|
||||
}
|
||||
string_warnings += obj[key].join(" ");
|
||||
h = parseItem(string_warnings, key, "Warnings");
|
||||
if (h) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user