summaryrefslogtreecommitdiff
path: root/lib/ohai/system.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/system.rb')
-rw-r--r--lib/ohai/system.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/system.rb b/lib/ohai/system.rb
index 6fa56085..e66ba90b 100644
--- a/lib/ohai/system.rb
+++ b/lib/ohai/system.rb
@@ -43,8 +43,8 @@ module Ohai
# something like chef-client (which doesn't not set this flag) and
# which sets up its own loggers, or if we're coming from Ohai::Application
# and therefore need to configure Ohai's own logger.
- def initialize(config = {}, cli: false)
- @cli = cli
+ def initialize(config = {})
+ @cli = config[:invoked_from_cli]
@plugin_path = ""
@config = config
reset_system