Skip to content

Do not warn on every run when the sudoversion fact resolves - #347

Merged
saz merged 1 commit into
saz:masterfrom
houssemexo26:sudoversion-drop-run-time-warning
Oct 2, 2026
Merged

saz merged 1 commit into
saz:masterfrom
houssemexo26:sudoversion-drop-run-time-warning

Conversation

@houssemexo26

@houssemexo26 houssemexo26 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Facter.warn in the sudoversion fact fires on every fact resolution, so every user of the module sees the deprecation warning on every run whether or not they use the fact. Removed it and documented both facts in the README instead. The fact itself is unchanged.

Fixes #346

@saz saz added the bug label Oct 2, 2026
@saz
saz merged commit 19b1ee5 into saz:master Oct 2, 2026
11 checks passed
miharp added a commit to miharp/control-repo that referenced this pull request Oct 8, 2026
10.0.1 removes the per-run Facter.warn that 10.0.0 added to the
sudoversion fact (saz/puppet-sudo#347), which is why #80 kept 9.0.2. The
sudoversion and new sudo facts only call Facter::Core::Execution.which
and .execute, so 9.x agents stop warning about the deprecated
Facter::Util::Resolution API from this module. puppet/yum is now the only
module here that still triggers those warnings.

10.0.0's breaking changes drop Debian 11 and add a structured sudo fact
next to sudoversion; nothing here reads either fact.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sudoversion deprecation warning printed on every run

2 participants