diff options
author | John Keiser <john@johnkeiser.com> | 2015-11-17 14:40:33 -0800 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-12-15 13:01:32 -0800 |
commit | 9dbe7491927ecf73d5757179dc6e26c1946f46c0 (patch) | |
tree | 231566c67d2a72831126468398b37b4b7b20116c /lib/chef/knife | |
parent | b743fcdbd172862386d172b42bbbc31cfe2f4239 (diff) | |
download | chef-9dbe7491927ecf73d5757179dc6e26c1946f46c0.tar.gz |
Add knife/ChefFS support for policyfiles and policy_groups.
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/list.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/knife/list.rb b/lib/chef/knife/list.rb index 137d61f3a5..263b0e7431 100644 --- a/lib/chef/knife/list.rb +++ b/lib/chef/knife/list.rb @@ -47,6 +47,7 @@ class Chef args = pattern_args_from(patterns) all_results = parallelize(pattern_args_from(patterns)) do |pattern| pattern_results = Chef::ChefFS::FileSystem.list(config[:local] ? local_fs : chef_fs, pattern).to_a + if pattern_results.first && !pattern_results.first.exists? && pattern.exact_path ui.error "#{format_path(pattern_results.first)}: No such file or directory" self.exit_code = 1 |