Skip to content

Make "pass_num" name consistent across "mount" functions - #70173

Open
meaksh wants to merge 3 commits into
saltstack:masterfrom
meaksh:master-unify-pass_num-arguments
Open

Make "pass_num" name consistent across "mount" functions#70173
meaksh wants to merge 3 commits into
saltstack:masterfrom
meaksh:master-unify-pass_num-arguments

Conversation

@meaksh

@meaksh meaksh commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR makes the mount modules to have a consistent naming for the pass argument, in favor of pass_num only. The name pass is not used as it created problem due reserved Python word.

Before this PR, different mount functions use different naming for the "pass" argument: pass_num, pass_fsck and fs_passno.

Also the, the output for mount.fstab and mount.vfstab uses pass to identify this value.

After this PR, all functions and output for mount modules will use pass_num, but we keep legacy pass in the output during deprecation time until 3011.

Also the PR adds deprecations warnings until Salt 3011 (2 major version ahead) to indicate the legacy argument names will be removed.

What issues does this PR fix or reference?

Fixes openSUSE/salt#668

Merge requirements satisfied?

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

Commits signed with GPG?

Yes

@meaksh
meaksh requested a review from a team as a code owner August 28, 2026 10:16
@meaksh
meaksh force-pushed the master-unify-pass_num-arguments branch from 2f4d2bb to 97e6ef6 Compare August 28, 2026 10:18
@meaksh
meaksh force-pushed the master-unify-pass_num-arguments branch from 97e6ef6 to f4d1b2e Compare August 28, 2026 10:22
@meaksh
meaksh force-pushed the master-unify-pass_num-arguments branch from 677af9e to 762adf8 Compare August 28, 2026 11:10
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] mounts.fstab output uses different name for same setting than mounts.mount

1 participant