libexec/custom_facts.rb in bolt-2.1.0 vs libexec/custom_facts.rb in bolt-2.2.0

- old
+ new

@@ -44,10 +44,10 @@ puts msg exit 1 end # Transport.connect will modify this hash! - transport_conn_info = conn_info.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + transport_conn_info = conn_info.transform_keys(&:to_sym) transport = Puppet::ResourceApi::Transport.connect(type, transport_conn_info) Puppet::ResourceApi::Transport.inject_device(type, transport) Puppet[:facts_terminus] = :network_device Puppet[:certname] = conn_info['uri']