Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(GH-3236) Only set ruby env vars on local transport when they exist #3240

Merged
merged 1 commit into from
Oct 5, 2023

Commits on Oct 4, 2023

  1. (puppetlabsGH-3236) Only set ruby env vars on local transport when th…

    …ey exist
    
    Previously we would attempt to use any prior environment variables captured when bolt was invoked by simply looking for those existing. This works when those exist but in the case they did not exist the environment variables were set to empty strings. This makes it impossible to load ruby code (for example to do an apply on local transport). This commit updates the local transport to only set those environment variables if they are explicitly set to something other than an empty string.
    
    !bug
    
    * **Only set ruby env vars for local transport when non empty strings**
      ([puppetlabs#3236](puppetlabs#3236))
    
      Previously when using bundled-ruby=false for the local transport and
      not expliclty setting ruby environment variables internal apply tasks
      did not work due to ruby code not being able to be loaded. Now the local
      transport only preserves ruby environment variables when they are set
      to something other than an empty string.
    donoghuc committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    8080be7 View commit details
    Browse the repository at this point in the history