Merge pull request #105 from derekhiggins/update-validate_re

Change list passed into validate_re to a stringe
This commit is contained in:
Dan Bode 2012-08-23 03:51:00 -07:00
commit 606e7c5cbd

View file

@ -44,7 +44,7 @@ define mysql::db (
$ensure = 'present'
) {
validate_re($ensure, [ '^present$', '^absent$' ],
validate_re($ensure, '^(present|absent)$',
"${ensure} is not supported for ensure. Allowed values are 'present' and 'absent'.")
database { $name: