Skip to content

Conversation

@harshang03
Copy link

What does this PR do?

Ensures ini.options_present with strict: True removes sections not declared, adds a helper to remove multiple sections, updates documentation, and adds unit coverage.

What issues does this PR fix or reference?

Fixes #68673

Previous Behavior

Strict mode removed extra keys but left extra sections intact.

New Behavior

Strict mode now prunes entire sections not present in the sections mapping.
Merge require

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

Links referenced:
#68673

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.

[Bug]: ini_manage.options_present 'strict' does not remove sections that must not exist

1 participant