Skip to content

Commit

Permalink
Fix new errors after rebasing on top of main
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Jun 1, 2022
1 parent 863b42f commit af575d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions lib/puppet/functions/stdlib/str2resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# @summary
# This converts a string to a puppet resource.
#
# This attempts to convert a string like 'File[/foo]' into the
# puppet resource `File['/foo']` as detected by the catalog.
# This attempts to convert a string like 'File[/foo]' into the
# puppet resource `File['/foo']` as detected by the catalog.
#
# Things like 'File[/foo, /bar]' are not supported as a
# title might contain things like ',' or ' '. There is
# no clear value seperator to use.
# Things like 'File[/foo, /bar]' are not supported as a
# title might contain things like ',' or ' '. There is
# no clear value seperator to use.
#
# This function can depend on the parse order of your
# manifests/modules as it inspects the catalog thus far.
# This function can depend on the parse order of your
# manifests/modules as it inspects the catalog thus far.
Puppet::Functions.create_function(:'stdlib::str2resource') do
# @param res_string The string to lookup as a resource
# @example
Expand Down
16 changes: 8 additions & 8 deletions manifests/manage.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
# }
#
# @example
# stdlib::manage::create_resources:
# file:
# '/etc/motd.d/hello':
# content: I say Hi
# notify: 'Service[sshd]'
# package:
# example:
# ensure: installed
# stdlib::manage::create_resources:
# file:
# '/etc/motd.d/hello':
# content: I say Hi
# notify: 'Service[sshd]'
# package:
# example:
# ensure: installed
class stdlib::manage (
Hash[String, Hash] $create_resources = {}
) {
Expand Down

0 comments on commit af575d0

Please sign in to comment.