summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/filesystem.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/filesystem.rb')
-rw-r--r--lib/ohai/plugins/filesystem.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ohai/plugins/filesystem.rb b/lib/ohai/plugins/filesystem.rb
index 7de1ddee..51e53c73 100644
--- a/lib/ohai/plugins/filesystem.rb
+++ b/lib/ohai/plugins/filesystem.rb
@@ -23,6 +23,8 @@
# limitations under the License.
#
+require "set" unless defined?(Set)
+
Ohai.plugin(:Filesystem) do
provides "filesystem".freeze
@@ -697,7 +699,6 @@ Ohai.plugin(:Filesystem) do
end
collect_data(:windows) do
- require "set" # rubocop: disable Chef/Ruby/UnlessDefinedRequire
require "wmi-lite/wmi" unless defined?(WmiLite::Wmi)
require_relative "../mash"