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

- old
+ new

@@ -1,12 +1,11 @@ # frozen_string_literal: true require 'bolt/error' # Parses common ways of referring to targets and returns an array of Targets. -# `get_targets('all')` returns an empty array. # -# **NOTE:** Not available in apply block when `future` is true +# > **Note:** Not available in apply block Puppet::Functions.create_function(:get_targets) do # @param names A pattern or array of patterns identifying a set of targets. # @return A list of unique Targets resolved from any target URIs and groups. # @example Resolve a group # get_targets('group1')