Commit 68f789a4 authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

No need to check ensure twice

parent e678e898
......@@ -42,8 +42,6 @@ define postfix::virtual (
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}'"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment