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

undefined method `with_env' for Facter::Util::Resolution:Class #162

Closed
igalic opened this issue May 7, 2016 · 5 comments
Closed

undefined method `with_env' for Facter::Util::Resolution:Class #162

igalic opened this issue May 7, 2016 · 5 comments

Comments

@igalic
Copy link
Contributor

igalic commented May 7, 2016

my version of facter (3.1.6 (commit 3a021f47393001e7acdde60e53ff8ac0cc04a9ec)) doesn't seem to have #with_env in Facter::Util::Resolution

@jyaworski
Copy link
Member

At what point are we going to switch to Facter::Core::Execution? It's been in facter since.... 2.x?

@igalic
Copy link
Contributor Author

igalic commented May 9, 2016

@jyaworski now is as good a time as any…

@kallies
Copy link

kallies commented Jul 18, 2016

I get this error with Puppet Enterprise 2016.2 on Ubuntu 14.04 (Agent) and Ubuntu 16.04 (Master)

Error: Facter: error while resolving custom fact "network_nexthop_ip": undefined method `with_env' for Facter::Util::Resolution:Class

@alexjfisher
Copy link
Member

Facter::Core::Execution doesn't support with_env either...

Is setting the path with with_env actually needed though? I can't find many other modules that do this. eg https://github.com/puppetlabs/puppetlabs-firewall/blob/1.8.1/lib/facter/ip6tables_version.rb#L4
This uses ip6tables, which like ip is also in /sbin/ on my distro at least.

@alexjfisher
Copy link
Member

Fixed in #177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants