V2Wizard: Disable stig and stig_gui
Fixes #1971 This disables stig and stig_gui profiles which are currently broken.
This commit is contained in:
parent
b6041d2022
commit
100c5f7809
1 changed files with 20 additions and 9 deletions
|
|
@ -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}
|
||||
/>
|
||||
);
|
||||
})
|
||||
);
|
||||
}
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue