Skip to content

Remove deprecated exec/which exposure from Facter::Util::Resolution#113

Draft
silug wants to merge 1 commit into
OpenVoxProject:mainfrom
silug:remove-resolution-exec-which
Draft

Remove deprecated exec/which exposure from Facter::Util::Resolution#113
silug wants to merge 1 commit into
OpenVoxProject:mainfrom
silug:remove-resolution-exec-which

Conversation

@silug
Copy link
Copy Markdown

@silug silug commented Apr 13, 2026

Short description

Remove deprecated Facter::Core::Execution.exec and Resolution compatibility

Remove Facter::Core::Execution.exec, which was deprecated in favor of Facter::Core::Execution.execute (#88).

Remove the deprecated class-level exec/which compatibility exposure from Facter::Util::Resolution that bridged to Facter::Core::Execution since Facter 2.0.0 (#89). These two removals are coupled — exec on Resolution delegated through Execution.exec, so they must ship together.

Update the acceptance test that called Facter::Util::Resolution.exec to use Facter::Core::Execution.execute(cmd, on_fail: nil) directly.

Closes #88 #89

Checklist

I have:

  • read the CONTRIBUTING.md document
  • read and accepted the Developer Certificate of Origin document and added a Signed-off-by annotation to each of my commits
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@silug silug force-pushed the remove-resolution-exec-which branch from 46d1772 to 1a9c887 Compare April 13, 2026 19:53
…bility

Remove `Facter::Core::Execution.exec`, which was deprecated in favor of
`Facter::Core::Execution.execute` (OpenVoxProject#88).

Remove the deprecated class-level `exec`/`which` compatibility exposure
from `Facter::Util::Resolution` that bridged to
`Facter::Core::Execution` since Facter 2.0.0 (OpenVoxProject#89). These two removals
are coupled — `exec` on `Resolution` delegated through `Execution.exec`,
so they must ship together.

Update the acceptance test that called `Facter::Util::Resolution.exec`
to use `Facter::Core::Execution.execute(cmd, on_fail: nil)` directly.

Closes OpenVoxProject#88 OpenVoxProject#89

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Steven Pritchard <steven.pritchard@gmail.com>
@silug silug force-pushed the remove-resolution-exec-which branch from 1a9c887 to fa5f8af Compare April 13, 2026 19:59
@smoeding
Copy link
Copy Markdown

Facter::Core::Execution.exec is still used by the supported LVM module in the puppetlabs namespace. Hopefully this will be fixed before the removal.

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.

[Deprecation] Facter::Core::Execution.exec

2 participants