summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormutante <mutante@s23.org>2017-09-25 01:38:42 -0700
committerTP Honey <tphoney@users.noreply.github.com>2017-09-25 09:38:42 +0100
commite66f7aa1ba49fef4296d977b471a1def38c1df5c (patch)
tree29c0e6d97c184b05eeb700df5bd35547d3fb6411
parente041157598cca3ab05600630d4ce5c3454f45c68 (diff)
fix quoting style in validate_legacy example (#816)
I used the example code from this README file but i got downvotes from CI / jenkins / puppet-lint because it doesn't conform to Puppet style guides to use double quotes here. It produces "double quoted string containing no variables" warnings. I wanted to fix the example locally but it was pointed out to me we should fix it upstream stdlib instead.
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 223945c..ac4f997 100644
--- a/README.md
+++ b/README.md
@@ -2214,7 +2214,7 @@ Arguments:
Example:
```puppet
-validate_legacy("Optional[String]", "validate_re", "Value to be validated", ["."])
+validate_legacy('Optional[String]', 'validate_re', 'Value to be validated', ["."])
```
This function supports updating modules from Puppet 3-style argument validation (using the stdlib `validate_*` functions) to Puppet 4 data types, without breaking functionality for those depending on Puppet 3-style validation.