lib/bolt/applicator.rb in bolt-3.7.1 vs lib/bolt/applicator.rb in bolt-3.8.0
- old
+ new
@@ -85,10 +85,10 @@
name: target.name,
facts: @inventory.facts(target).merge('bolt' => true),
variables: @inventory.vars(target),
trusted: trusted.to_h
}
- catalog_request = scope.merge(target: target_data)
+ catalog_request = scope.merge(target: target_data).merge(future: @executor.future || {})
bolt_catalog_exe = File.join(libexec, 'bolt_catalog')
old_path = ENV['PATH']
ENV['PATH'] = "#{RbConfig::CONFIG['bindir']}#{File::PATH_SEPARATOR}#{old_path}"
out, err, stat = Open3.capture3('ruby', bolt_catalog_exe, 'compile', stdin_data: catalog_request.to_json)