bolt-modules/boltlib/lib/puppet/functions/get_target.rb in bolt-1.49.0 vs bolt-modules/boltlib/lib/puppet/functions/get_target.rb in bolt-2.0.0

- old
+ new

@@ -2,12 +2,10 @@ require 'bolt/error' # Get a single target from inventory if it exists, otherwise create a new Target. # -# **NOTE:** Calling `get_target('all')` returns an empty array. -# **NOTE:** Only compatible with inventory v2 -# **NOTE:** Not available in apply block when `future` is true +# > **Note:** Calling `get_target('all')` returns an empty array. Puppet::Functions.create_function(:get_target) do # @param name A Target name. # @return A single target, either new or from inventory. # @example Create a new Target from a URI # get_target('winrm://host2:54321')