lib/chef/knife/xargs_essentials.rb in knife-essentials-0.9.8 vs lib/chef/knife/xargs_essentials.rb in knife-essentials-1.0.0.beta1

- old
+ new

@@ -72,10 +72,10 @@ def run error = false # Get the matches (recursively) files = [] pattern_args_from(get_patterns).each do |pattern| - ChefFS::FileSystem.list(config[:local] ? local_fs : chef_fs, pattern) do |result| + ChefFS::FileSystem.list(config[:local] ? local_fs : chef_fs, pattern).each do |result| if result.dir? # TODO option to include directories ui.warn "#{format_path(result)}: is a directory. Will not run #{command} on it." else files << result