Wizard: Disabled OpenSCAP profile selection for RHEL10
This commit is contained in:
parent
92984f3187
commit
0154452411
2 changed files with 15 additions and 2 deletions
|
|
@ -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 aren’t available for RHEL 10 in Image Builder
|
||||
yet. Support is on the way—check back soon for updates.
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
{environments.includes('wsl') && (
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ const OscapContent = () => {
|
|||
</AlertActionLink>
|
||||
</Alert>
|
||||
)}
|
||||
<Oscap />
|
||||
<Oscap majorVersion={majorVersion} />
|
||||
</Form>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue