summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorDmitry Ilyin <dilyin@mirantis.com>2015-08-24 22:00:18 +0300
committerDmitry Ilyin <dilyin@mirantis.com>2015-08-25 21:41:03 +0300
commiteb948c4a0dc36790c5444fc236b0154c3d716c58 (patch)
tree02357ac0aaebe45825bf6fffeb8f0cf9e883cab4 /README.markdown
parentf820bb156038f638d8e488286d0c2b92c5636925 (diff)
[MODULES-2462] Improve parseyaml function
* Add default value support Second argument will be returned if yaml cannot be parsed instead of false value * Update tests
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 8ed3d9b..2f84a24 100644
--- a/README.markdown
+++ b/README.markdown
@@ -490,10 +490,12 @@ Converts a number or a string representation of a number into a true boolean. Ze
#### `parsejson`
Converts a string of JSON into the correct Puppet structure. *Type*: rvalue.
+The optional second argument will be returned if the data was not correct.
#### `parseyaml`
Converts a string of YAML into the correct Puppet structure. *Type*: rvalue.
+The optional second argument will be returned if the data was not correct.
#### `pick`