app/lib/katello/util/cdn_var_substitutor.rb in katello-3.10.0 vs app/lib/katello/util/cdn_var_substitutor.rb in katello-3.10.1
- old
+ new
@@ -58,10 +58,11 @@
resolved = paths_with_substitutions - to_resolve
return resolved if to_resolve.empty?
futures = to_resolve.map do |path_with_substitution|
- Concurrent.future do
+ future_namespace = defined?(Concurrent::Promises) ? Concurrent::Promises : Concurrent
+ future_namespace.future do
path_with_substitution.resolve_substitutions(@resource)
end
end
futures.each do |future|