summaryrefslogtreecommitdiff
path: root/chef-config/lib/chef-config/fips.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef-config/lib/chef-config/fips.rb')
-rw-r--r--chef-config/lib/chef-config/fips.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/chef-config/lib/chef-config/fips.rb b/chef-config/lib/chef-config/fips.rb
index 4c365301d5..06d039eb9e 100644
--- a/chef-config/lib/chef-config/fips.rb
+++ b/chef-config/lib/chef-config/fips.rb
@@ -1,6 +1,6 @@
#
# Author:: Matt Wrock (<matt@mattwrock.com>)
-# Copyright:: Copyright (c) 2016 Chef Software, Inc.
+# Copyright:: Copyright (c) 2016-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,10 +16,12 @@
# limitations under the License.
#
+require "chef-utils" unless defined?(ChefUtils::CANARY)
+
module ChefConfig
def self.fips?
- if ChefConfig.windows?
+ if ChefUtils.windows?
begin
require "win32/registry" unless defined?(Win32::Registry)
rescue LoadError