Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Coremunity
-
Platform Core KANBAN
-
Needs Assessment
-
Enhancement
-
Eliminates the usage of $CHILD_STATUS global variable in builtin service and package providers.
-
Needs Assessment
Description
Some of our provider tests add expectations to $CHILD_STATUS#exitstatus, but that is no longer possible in Ruby 3, because it is frozen, leading to:
Cannot proxy frozen objects, rspec-mocks relies on proxies for method stubbing and expectations.
|
Now that Puppet::Util::Execution.execute returns a ProcessOutput containing the exitstatus, there is no reason to continue using CHILD_STATUS.