Skip to content

Fix autotailor overwriting extends attribute from JSON tailoring#2375

Open
Arden97 wants to merge 1 commit into
OpenSCAP:mainfrom
Arden97:autotailor_policy_id
Open

Fix autotailor overwriting extends attribute from JSON tailoring#2375
Arden97 wants to merge 1 commit into
OpenSCAP:mainfrom
Arden97:autotailor_policy_id

Conversation

@Arden97

@Arden97 Arden97 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix autotailor ignoring base_profile_id from JSON tailoring files when no CLI base profile is provided
  • Add integration tests for the extends attribute preservation

Fix

  • Guard the assignment with if args.profile:, so the CLI argument only overrides extends when explicitly provided
  • When omitted, the value from JSON's base_profile_id is preserved
  • Fixes RHEL-182992

Testing hints

  • fix was manually verified on RHEL10 VM
  • all tests from autotailor_integration_test.sh, including the newly added one, passed

@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant