V2Wizard: Disable stig and stig_gui

Fixes #1971

This disables stig and stig_gui profiles which are currently broken.
This commit is contained in:
regexowl 2024-04-25 11:35:24 +02:00 committed by Lucas Garfield
parent b6041d2022
commit 100c5f7809

View file

@ -199,15 +199,26 @@ const ProfileSelector = () => {
onFilter={(_event, value) => {
if (profiles) {
return [<OScapNoneOption key="oscap-none-option" />].concat(
profiles.map((profile_id, index) => {
return (
<OScapSelectOption
key={index}
profile_id={profile_id}
filter={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}
filter={value}
/>
);
})
);
}
}}