@@ -16,7 +16,7 @@ import {
1616 ModalBody ,
1717} from '@patternfly/react-core' ;
1818import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon' ;
19- import { PrismCode , SimpleAIPrismTheme , UiIcon } from '../ui' ;
19+ import { PrismCode , UiIcon } from '../ui' ;
2020import { useTranslation } from '../../hooks/use-translation-wrapper' ;
2121import { Trans } from 'react-i18next' ;
2222import { saveAs } from 'file-saver' ;
@@ -70,7 +70,7 @@ export const DiscoveryTroubleshootingModalContent = () => {
7070 ) }
7171 </ HelperTextItem >
7272 </ HelperText >
73- < PrismCode theme = { SimpleAIPrismTheme } code = "ssh -i <identity_file> core@<machine-ip>" />
73+ < PrismCode code = "ssh -i <identity_file> core@<machine-ip>" />
7474 < HelperText >
7575 < HelperTextItem data-testid = "discovery-troubleshooting-ssh-auth-helper" >
7676 { t (
@@ -106,7 +106,6 @@ export const DiscoveryTroubleshootingModalContent = () => {
106106 </ HelperTextItem >
107107 </ HelperText >
108108 < PrismCode
109- theme = { SimpleAIPrismTheme }
110109 code = { `chmod +x ./change-iso-password.sh
111110./change-iso-password.sh <path_to_your_iso_file>` }
112111 />
@@ -115,14 +114,13 @@ export const DiscoveryTroubleshootingModalContent = () => {
115114 < Content component = "p" >
116115 { t ( 'ai:The discovery agent is running with the correct parameters' ) }
117116 </ Content >
118- < PrismCode theme = { SimpleAIPrismTheme } code = { `ps -ef | grep agent` } />
117+ < PrismCode code = { `ps -ef | grep agent` } />
119118 < HelperText >
120119 < HelperTextItem data-testid = "discovery-troubleshooting-agent-output-helper" >
121120 { t ( 'ai:The output displays the following:' ) }
122121 </ HelperTextItem >
123122 </ HelperText >
124123 < PrismCode
125- theme = { SimpleAIPrismTheme }
126124 code = { `root 1786 1 0 08:03 ? 00:00:00 /usr/local/bin/agent --url https://api.openshift.com --cluster-id e4c85fbe-77c7-411e-b107-5120f615c4fb --agent-version registry.redhat.io/openshift4/assisted-installer-agent-rhel8:v4.6.0-17 --insecure=false
127125core 2362 2311 0 08:04 pts/0 00:00:00 grep --color=auto agent` }
128126 />
@@ -134,14 +132,14 @@ core 2362 2311 0 08:04 pts/0 00:00:00 grep --color=auto agent`}
134132 { t ( 'ai:To verify that the agent ran successfully, check the logs:' ) }
135133 </ HelperTextItem >
136134 </ HelperText >
137- < PrismCode theme = { SimpleAIPrismTheme } code = "sudo journalctl -u agent.service" />
135+ < PrismCode code = "sudo journalctl -u agent.service" />
138136 < HelperText >
139137 < HelperTextItem data-testid = "discovery-troubleshooting-network-error-helper" >
140138 { t ( 'ai:In the following example, the errors indicate there is a network issue:' ) }
141139 </ HelperTextItem >
142140 </ HelperText >
143141 < PrismCode
144- theme = { { ... SimpleAIPrismTheme , styles : [ ] } }
142+ styles = { [ ] }
145143 code = { `Oct 15 11:26:35 localhost systemd[1]: agent.service: Service RestartSec=3s expired, scheduling restart.
146144Oct 15 11:26:35 localhost systemd[1]: agent.service: Scheduled restart job, restart counter is at 9.
147145Oct 15 11:26:35 localhost systemd[1]: Stopped agent.service.
@@ -170,20 +168,19 @@ Oct 15 11:26:35 localhost systemd[1]: Failed to start agent.service.`}
170168 { t ( 'ai:To view detailed agent logs and communication use following command:' ) }
171169 </ HelperTextItem >
172170 </ HelperText >
173- < PrismCode theme = { SimpleAIPrismTheme } code = "sudo journalctl TAG=agent | less" />
171+ < PrismCode code = "sudo journalctl TAG=agent | less" />
174172 </ ListItem >
175173 < ListItem >
176174 < Content component = "p" > { t ( 'ai:Check assisted-installer logs' ) } </ Content >
177175 < PrismCode
178- theme = { SimpleAIPrismTheme }
179176 code = { `sudo su
180177podman ps -a | grep assisted-installer
181178podman logs <container id>` }
182179 />
183180 </ ListItem >
184181 < ListItem >
185182 < Content component = "p" > { t ( 'ai:Check bootkube logs' ) } </ Content >
186- < PrismCode theme = { SimpleAIPrismTheme } code = { `sudo journalctl -u bootkube` } />
183+ < PrismCode code = { `sudo journalctl -u bootkube` } />
187184 </ ListItem >
188185 </ List >
189186 ) ;
0 commit comments