diff options
Diffstat (limited to 'lib/chef/role.rb')
-rw-r--r-- | lib/chef/role.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/role.rb b/lib/chef/role.rb index 124acdfaf0..6ad58b816d 100644 --- a/lib/chef/role.rb +++ b/lib/chef/role.rb @@ -233,8 +233,7 @@ class Chef # Load a role from disk - prefers to load the JSON, but will happily load # the raw rb files as well. def self.from_disk(name, force=nil) - paths = Chef::Config[:role_path] - paths = [paths] if paths.is_a? String + paths = Array(Chef::Config[:role_path]) paths.each do |p| js_file = File.join(p, "#{name}.json") |