Skip to content

Fix autotailor json bugs#2318

Draft
Mab879 wants to merge 1 commit intoOpenSCAP:mainfrom
Mab879:fix_autotail_json_bugs
Draft

Fix autotailor json bugs#2318
Mab879 wants to merge 1 commit intoOpenSCAP:mainfrom
Mab879:fix_autotail_json_bugs

Conversation

@Mab879
Copy link
Copy Markdown
Member

@Mab879 Mab879 commented Mar 2, 2026

No description provided.

@jan-cerny jan-cerny self-assigned this Mar 26, 2026
@Mab879 Mab879 force-pushed the fix_autotail_json_bugs branch from a1a18c2 to 30b68d2 Compare March 27, 2026 15:39
utils/autotailor Outdated
if not profile_dict.get("base_profile_id") and not profile_dict.get("id"):
raise ValueError("You must define a base_profile_id or an id")
self.extends = profile_dict.get("base_profile_id")
self.profile_id = profile_dict.get("id")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the self.profile_id be None after this assignment?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there is a None check at 289.

@Mab879 Mab879 force-pushed the fix_autotail_json_bugs branch from 30b68d2 to f0251c9 Compare March 30, 2026 15:11
@sonarqubecloud
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.

2 participants