Is this a critical security issue?
Describe the Bug
puppet resource service errors out when listing all services:
Error: Could not run: undefined method `gsub' for nil
Expected Behavior
puppet resource service should display the usual list of service stanzas for all available services.
Steps to Reproduce
- On FreeBSD, run
puppet resource service.
- Observe that it fails.
- Run
puppet resource service jail (picked at random) to demonstrate it's a specific service causing the issue.
Environment
Version 8.24.1 (same behavior on 8.22.0)
Platform FreeBSD 14.3p7
Additional Context
The NoMethodError is thrown at lib/puppet/provider/service/freebsd.rb:27 when parsing the output of service dumpon rcvar. For some reason that lists zero rcvars (there is in fact one), which appears to be the problem.
Relevant log output
Is this a critical security issue?
Describe the Bug
puppet resource serviceerrors out when listing all services:Expected Behavior
puppet resource serviceshould display the usual list of service stanzas for all available services.Steps to Reproduce
puppet resource service.puppet resource service jail(picked at random) to demonstrate it's a specific service causing the issue.Environment
Version 8.24.1 (same behavior on 8.22.0)
Platform FreeBSD 14.3p7
Additional Context
The
NoMethodErroris thrown atlib/puppet/provider/service/freebsd.rb:27when parsing the output ofservice dumpon rcvar. For some reason that lists zero rcvars (there is in fact one), which appears to be the problem.Relevant log output