summaryrefslogtreecommitdiff
path: root/lib/chef/knife/xargs.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-05-02 17:19:36 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-06-07 13:12:32 -0700
commit4b33978d9aa40ea66db16b2f985f51f19bdacf8d (patch)
tree4ed868b133ad06fa040c3b9f96e1f9ff48f13db7 /lib/chef/knife/xargs.rb
parentc2e7301ee0225a92c231d6756fa5c1bb39e5a13e (diff)
downloadchef-4b33978d9aa40ea66db16b2f985f51f19bdacf8d.tar.gz
Turn list() and list_pairs() into Enumerables
Diffstat (limited to 'lib/chef/knife/xargs.rb')
-rw-r--r--lib/chef/knife/xargs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/xargs.rb b/lib/chef/knife/xargs.rb
index 07895d70df..0a34f380ce 100644
--- a/lib/chef/knife/xargs.rb
+++ b/lib/chef/knife/xargs.rb
@@ -72,7 +72,7 @@ class Chef
# Get the matches (recursively)
files = []
pattern_args_from(get_patterns).each do |pattern|
- Chef::ChefFS::FileSystem.list(config[:local] ? local_fs : chef_fs, pattern) do |result|
+ Chef::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."