stages/oscap.autotailor: rename new_profile

Rename the `new_profile` option to `tailoring_profile_id` for clarity.
This also ensures that the change is backwards compatible by falling
back to the `new_profile` option if that was set instead of the
`tailoring_profile` id option.
This commit is contained in:
Gianluca Zuccarelli 2024-07-12 12:06:32 +01:00 committed by Sanne Raymaekers
parent 16667ef260
commit 2a28acbc85
5 changed files with 19 additions and 11 deletions

View file

@ -464,7 +464,7 @@
"config": {
"datastream": "/usr/share/xml/scap/ssg/content/ssg-fedora-ds.xml",
"profile_id": "xccdf_org.ssgproject.content_profile_ospp",
"new_profile": "xccdf_org.ssgproject.content_profile_ospp_osbuild_tailoring",
"tailored_profile_id": "xccdf_org.ssgproject.content_profile_ospp_osbuild_tailoring",
"selected": [
"partition_for_var_log"
],

View file

@ -21,7 +21,7 @@ pipelines:
config:
datastream: /usr/share/xml/scap/ssg/content/ssg-fedora-ds.xml
profile_id: xccdf_org.ssgproject.content_profile_ospp
new_profile: xccdf_org.ssgproject.content_profile_ospp_osbuild_tailoring
tailored_profile_id: xccdf_org.ssgproject.content_profile_ospp_osbuild_tailoring
selected:
- partition_for_var_log
unselected: