Wizard: Disabled OpenSCAP profile selection for RHEL10

This commit is contained in:
Lucas Garfield 2025-05-14 11:14:19 -05:00 committed by Lucas Garfield
parent 92984f3187
commit 0154452411
2 changed files with 15 additions and 2 deletions

View file

@ -13,11 +13,24 @@ import {
selectImageTypes,
} from '../../../../store/wizardSlice';
const Oscap = () => {
type OscapPropTypes = {
majorVersion: string;
};
const Oscap = ({ majorVersion }: OscapPropTypes) => {
const oscapProfile = useAppSelector(selectComplianceProfileID);
const environments = useAppSelector(selectImageTypes);
const complianceType = useAppSelector(selectComplianceType);
if (majorVersion === '10' && complianceType === 'openscap') {
return (
<Alert title="OpenSCAP Security Profiles for RHEL 10 Not Yet Available">
OpenSCAP security profiles arent available for RHEL 10 in Image Builder
yet. Support is on the waycheck back soon for updates.
</Alert>
);
}
return (
<>
{environments.includes('wsl') && (

View file

@ -153,7 +153,7 @@ const OscapContent = () => {
</AlertActionLink>
</Alert>
)}
<Oscap />
<Oscap majorVersion={majorVersion} />
</Form>
);
};