diff options
Diffstat (limited to 'lib/chef/chef_fs/config.rb')
-rw-r--r-- | lib/chef/chef_fs/config.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/config.rb b/lib/chef/chef_fs/config.rb index 53964c8b85..9c3810a492 100644 --- a/lib/chef/chef_fs/config.rb +++ b/lib/chef/chef_fs/config.rb @@ -270,7 +270,8 @@ class Chef end object_names.each do |object_name| # cookbooks -> cookbook_path - (singular_name = INFLECTIONS[object_name]) || raise("Unknown object name #{object_name}") + singular_name = INFLECTIONS[object_name] + raise("Unknown object name #{object_name}") unless singular_name variable_name = "#{singular_name}_path" paths = Array(@chef_config[variable_name]).flatten result[object_name] = paths.map { |path| File.expand_path(path) } |