bolt-modules/boltlib/lib/puppet/functions/puppetdb_fact.rb in bolt-1.49.0 vs bolt-modules/boltlib/lib/puppet/functions/puppetdb_fact.rb in bolt-2.0.0
- old
+ new
@@ -2,11 +2,11 @@
require 'bolt/error'
# Collects facts based on a list of certnames.
#
-# * If a node is not found in PuppetDB, it's included in the returned hash with empty facts hash.
-# * Otherwise the node is included in the hash with a value that is a hash of it's facts.
+# If a node is not found in PuppetDB, it's included in the returned hash with an empty facts hash.
+# Otherwise, the node is included in the hash with a value that is a hash of its facts.
Puppet::Functions.create_function(:puppetdb_fact) do
# @param certnames Array of certnames.
# @return A hash of certname to facts hash for each matched Target.
# @example Get facts for nodes
# puppetdb_fact(['app.example.com', 'db.example.com'])