Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Puppet Camptocamp Postfix
Commits
68f789a4
Commit
68f789a4
authored
May 27, 2013
by
Raphaël Pinson
Browse files
No need to check ensure twice
parent
e678e898
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/virtual.pp
View file @
68f789a4
...
...
@@ -42,8 +42,6 @@ define postfix::virtual (
validate_string
(
$file
)
validate_absolute_path
(
$file
)
validate_string
(
$ensure
)
validate_re
(
$ensure
,
[
'present'
,
'absent'
],
"
\$
ensure must be either 'present' or 'absent', got '
${ensure}
'"
)
case
$ensure
{
'present'
:
{
...
...
@@ -59,7 +57,7 @@ define postfix::virtual (
}
default
:
{
fail
(
"Wrong ensure value:
${ensure}
"
)
fail
"
\$
ensure must be either 'present' or 'absent', got '
${ensure}
'
"
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment