Skip to content

Conversation

@ekohl
Copy link
Member

@ekohl ekohl commented Sep 13, 2024

The use of chdir is problematic in threaded environments (only one thread may chdir) and Puppet has a native method for this. See puppetlabs/puppet#9387 for more information.

It also simplifies the detection of %s in custom_command by using the cheaper include? method. The safe operator makes it even shorter.

This uses the cheaper include? to determine if %s is in custom_command.
It also simplifies the expression with a safe operator.
The use of chdir is problematic in threaded environments (only one
thread may chdir) and Puppet has a native method for this.

Link: puppetlabs/puppet#9387
@bastelfreak bastelfreak added the bug Something isn't working label Jul 8, 2025
@bastelfreak bastelfreak merged commit 7134981 into voxpupuli:master Jul 8, 2025
@ekohl ekohl deleted the fix-extract branch July 8, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants