V1Wizard/openscap: disable broken profiles

Currently the two stig profiles build but don't boot. While we wait for a
fix upstream, we should disable the profiles.
This commit is contained in:
Gianluca Zuccarelli 2024-04-05 15:33:32 +01:00 committed by Lucas Garfield
parent 972190ecaf
commit c44f8ea0ac

View file

@ -197,16 +197,27 @@ const ProfileSelector = ({ input }: ProfileSelectorProps) => {
key="oscap-none-option"
/>,
].concat(
profiles.map((profile_id, index) => {
return (
<OScapSelectOption
key={index}
profile_id={profile_id}
setProfileName={setProfileName}
input={value}
/>
);
})
profiles
// stig and stig_gui don't boot at the moment,
// so we should filter them out
.filter((profile_id) => {
const brokenProfiles = [
'xccdf_org.ssgproject.content_profile_stig',
'xccdf_org.ssgproject.content_profile_stig_gui',
];
return !brokenProfiles.includes(profile_id);
})
.map((profile_id, index) => {
return (
<OScapSelectOption
key={index}
profile_id={profile_id}
setProfileName={setProfileName}
input={value}
/>
);
})
);
}
}}