Change list passed into validate_re to a stringe

The list was causing a syntax error on puppet puppet 2.6.17
This commit is contained in:
Derek Higgins 2012-08-23 09:55:43 +01:00
parent bfd19998d1
commit 06fe2fdbd2

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: