You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the Ruby Ohai plugin, I can't think of a single situation where you would want this. You want plugins to pretend the embedded Chef Ruby doesn't exist when they're examining the system.
Ohai Version
16.13.0, but I see the same code path in master
Platform Version
Debian 10, CentOS 8
Ohai Output
Here's the node['languages']['ruby'] that I get since this change:
Description
There seems to have been a change in Chef 16 that makes it prepend the embedded Ruby directories to
PATH
when usingshell_out
: https://github.com/chef/chef/blob/chef-16/chef-utils/lib/chef-utils/dsl/default_paths.rbFor the Ruby Ohai plugin, I can't think of a single situation where you would want this. You want plugins to pretend the embedded Chef Ruby doesn't exist when they're examining the system.
Ohai Version
16.13.0, but I see the same code path in master
Platform Version
Debian 10, CentOS 8
Ohai Output
Here's the
node['languages']['ruby']
that I get since this change:This is what I should be getting:
Workaround
I am not familiar enough with the internals here to know if the above is the right solution or not... but it does work :)
The text was updated successfully, but these errors were encountered: