Commit 614213a
committed
resolvers/networking.rb: avoid calling ipconfig unless Windows
The following message was observed when running 'puppet catalog compile'
under RUBYOPT="--debug" with Puppet 7 and Facter 4.2.9 on FreeBSD 12.3
~~~~
Exception `Errno::ENOENT' at /opt/puppet/puppet_wk/puppet_ctl/tools/bundle/ruby/3.0/gems/facter-4.2.9/lib/facter/custom_facts/core/execution/popen3.rb:17 - No such file or directory - ipconfig
~~~~
In order to prevent the call to the Microsoft Windows ipconfig tool,
this changeset adds an additional test under the method
Facter::Resolvers::Networking.extract_dhcp
The patched networking.rb has been tested with Puppet 7 from a local
installation under Ruby 3.0 from FreeBSD ports, on FreeBSD 12.31 parent 88a4f07 commit 614213a
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
0 commit comments