lib/bolt_spec/run.rb in bolt-2.24.1 vs lib/bolt_spec/run.rb in bolt-2.25.0
- old
+ new
@@ -6,10 +6,11 @@
require 'bolt/inventory'
require 'bolt/pal'
require 'bolt/plugin'
require 'bolt/puppetdb'
require 'bolt/util'
+require 'bolt/logger'
# This is intended to provide a relatively stable method of executing bolt in process from tests.
module BoltSpec
module Run
def run_task(task_name, targets, params, config: nil, inventory: nil)
@@ -151,9 +152,11 @@
yield runner
end
end
def initialize(config_data, inventory_data, project_path)
+ Bolt::Logger.initialize_logging
+
@config_data = config_data || {}
@inventory_data = inventory_data || {}
@project_path = project_path
@analytics = Bolt::Analytics::NoopClient.new
end