diff options
Diffstat (limited to 'lib/chef/resource/chocolatey_config.rb')
-rw-r--r-- | lib/chef/resource/chocolatey_config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/chocolatey_config.rb b/lib/chef/resource/chocolatey_config.rb index d742c6e37a..247fa5bf23 100644 --- a/lib/chef/resource/chocolatey_config.rb +++ b/lib/chef/resource/chocolatey_config.rb @@ -39,7 +39,7 @@ class Chef # @param [String] id the config name # @return [String] the element's value field def fetch_config_element(id) - require "rexml/document" + require "rexml/document" unless defined?(REXML::Document) config_file = "#{ENV['ALLUSERSPROFILE']}\\chocolatey\\config\\chocolatey.config" raise "Could not find the Chocolatey config at #{config_file}!" unless ::File.exist?(config_file) |