diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-14 12:54:35 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-14 12:54:35 -0700 |
commit | 811abf7591844ef3229c5705e221cbf1e7ea3cd1 (patch) | |
tree | b0f0d6a87e2330916dce134904ba84b4fcaf0a00 /lib/chef/chef_fs | |
parent | ab827c15c14429d55064e1978df4c17e20e123ad (diff) | |
download | chef-811abf7591844ef3229c5705e221cbf1e7ea3cd1.tar.gz |
manual fixing for raise unless
Diffstat (limited to 'lib/chef/chef_fs')
-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) } |