Skip to content

Commit 9cd964d

Browse files
author
Martin Dluhos
committedAug 23, 2012
Fixed syntax of validate_re function.
1 parent dde8570 commit 9cd964d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎manifests/vhost.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
$ensure = 'present'
5858
) {
5959

60-
validate_re($ensure, [ '^present$', '^absent$' ],
60+
validate_re($ensure, '^(present|absent)$',
6161
"${ensure} is not supported for ensure.
6262
Allowed values are 'present' and 'absent'.")
6363

0 commit comments

Comments
 (0)
Please sign in to comment.