lib/bolt_spec/run.rb in bolt-2.0.0 vs lib/bolt_spec/run.rb in bolt-2.0.1
- old
+ new
@@ -129,10 +129,10 @@
# Creates a temporary boltdir so no settings are picked up
# WARNING: puppetdb config and orch config which do not use the boltdir may
# still be loaded
def self.with_runner(config_data, inventory_data)
Dir.mktmpdir do |boltdir_path|
- runner = new(config_data, inventory_data, boltdir_path)
+ runner = new(Bolt::Util.deep_clone(config_data), Bolt::Util.deep_clone(inventory_data), boltdir_path)
yield runner
end
end
def initialize(config_data, inventory_data, boltdir_path)