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:
parent
972190ecaf
commit
c44f8ea0ac
1 changed files with 21 additions and 10 deletions
|
|
@ -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}
|
||||
/>
|
||||
);
|
||||
})
|
||||
);
|
||||
}
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue