import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { Alert, AlertActionCloseButton } from '@patternfly/react-core';
import { translate as __ } from 'foremanReact/common/I18n';
import { msgLevelClasses } from './helpers';
const AnsibleLogs = ({ logs, checkMode }) => {
const [alertVisibility, setAlertVisibility] = useState(true);
return (
<>
{checkMode && alertVisibility ? (
{__('Level')} | {__('Task')} | {__('Message')} | |
---|---|---|---|
{log.level} | {log.task.name} | {Array.isArray(log.friendlyMessage) ? (
|
) : (
{log.friendlyMessage} | )}
{__('Nothing to show')} |