diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extlookup.rb | 4 | ||||
| -rwxr-xr-x | ext/puppetlisten/puppetlisten.rb | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/ext/extlookup.rb b/ext/extlookup.rb index b9ebc43c8..24b161e0f 100644 --- a/ext/extlookup.rb +++ b/ext/extlookup.rb @@ -116,9 +116,7 @@ module Puppet::Parser::Functions # if we got a custom data file, put it first in the array of search files if datafile != "" - if File.exists?(extlookup_datadir + "/#{datafile}.csv") - datafiles << extlookup_datadir + "/#{datafile}.csv" - end + datafiles << extlookup_datadir + "/#{datafile}.csv" if File.exists?(extlookup_datadir + "/#{datafile}.csv") end extlookup_precedence.each do |d| diff --git a/ext/puppetlisten/puppetlisten.rb b/ext/puppetlisten/puppetlisten.rb index b86f4d822..d1d6e8e44 100755 --- a/ext/puppetlisten/puppetlisten.rb +++ b/ext/puppetlisten/puppetlisten.rb @@ -59,7 +59,7 @@ loop do puts "accepted" ns.puts "Executing #{cmd} on #{Facter.fqdn}.\n*******OUTPUT********\n\n" IO.popen(cmd) do |f| - while line = f.gets do + while line = f.gets ns.puts line end end |
