diff options
author | danielsdeleo <dan@opscode.com> | 2013-10-16 10:45:05 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-10-16 13:53:37 -0700 |
commit | 2b1d59d0655b250d2927a061185beb8d897f3b70 (patch) | |
tree | 3d9fa37b4a8be9f57cc4d3756e339b912a571f91 /lib/chef/knife.rb | |
parent | a2e417039fd2850a4bc722c2ec2db9c9c36fca73 (diff) | |
download | chef-2b1d59d0655b250d2927a061185beb8d897f3b70.tar.gz |
Fixup specs to handle config jail feature
Diffstat (limited to 'lib/chef/knife.rb')
-rw-r--r-- | lib/chef/knife.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb index a7b2b27985..341402242e 100644 --- a/lib/chef/knife.rb +++ b/lib/chef/knife.rb @@ -315,6 +315,10 @@ class Chef config_file_settings end + def self.config_fetcher(candidate_config) + Chef::ConfigFetcher.new(candidate_config, Chef::Config.config_file_jail) + end + def self.locate_config_file candidate_configs = [] @@ -336,7 +340,7 @@ class Chef end candidate_configs.each do | candidate_config | - fetcher = Chef::ConfigFetcher.new(candidate_config, Chef::Config::config_file_jail) + fetcher = config_fetcher(candidate_config) if !fetcher.config_missing? return candidate_config end |