summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.markdown14
-rw-r--r--lib/puppet/parser/functions/str2bool.rb2
2 files changed, 10 insertions, 6 deletions
diff --git a/README.markdown b/README.markdown
index 158f55b..0666b37 100644
--- a/README.markdown
+++ b/README.markdown
@@ -468,11 +468,11 @@ From Hiera Backend:
~~~
userlist:
-dan:
- gid: 'mygroup'
-uid: '600'
-alex:
-gid: 'mygroup'
+ dan:
+ gid: 'mygroup'
+ uid: '600'
+ alex:
+ gid: 'mygroup'
ensure_resources('user', hiera_hash('userlist'), {'ensure' => 'present'})
~~~
@@ -900,6 +900,10 @@ Passing a third argument will cause the generated range to step by that interval
*Type*: rvalue.
+#### `regexpescape`
+
+Regexp escape a string or array of strings. Requires either a single string or an array as an input. *Type*: rvalue.
+
#### `reject`
Searches through an array and rejects all elements that match the provided regular expression. For example, `reject(['aaa','bbb','ccc','aaaddd'], 'aaa')` returns ['bbb','ccc']. *Type*: rvalue.
diff --git a/lib/puppet/parser/functions/str2bool.rb b/lib/puppet/parser/functions/str2bool.rb
index 8def131..472506d 100644
--- a/lib/puppet/parser/functions/str2bool.rb
+++ b/lib/puppet/parser/functions/str2bool.rb
@@ -21,7 +21,7 @@ like: 0, F,f, N,n, false, FALSE, no to 'false'.
end
unless string.is_a?(String)
- raise(Puppet::ParseError, 'str2bool(): Requires either ' +
+ raise(Puppet::ParseError, 'str2bool(): Requires ' +
'string to work with')
end