summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2015-07-09 16:14:16 +0000
committerintrigeri <intrigeri@boum.org>2015-07-09 16:14:16 +0000
commit62e98bb11828dc4e7ce10448081cad069ea859b7 (patch)
tree23b7cb2ae90478edd662d5b0d8e9e62be24c3b89
parent4148e5cfd8ebcc7565ac8d932f5afd496160cbe7 (diff)
-rw-r--r--manifests/jenkins/artifacts_store.pp5
1 files changed, 1 insertions, 4 deletions
diff --git a/manifests/jenkins/artifacts_store.pp b/manifests/jenkins/artifacts_store.pp
index b106c7d..1eab03b 100644
--- a/manifests/jenkins/artifacts_store.pp
+++ b/manifests/jenkins/artifacts_store.pp
@@ -13,10 +13,7 @@ class tails::jenkins::artifacts_store (
$artifacts_cleaner_ensure
)
- if ($artifacts_cleaner_ensure != 'present') \
- and ($artifacts_cleaner_ensure != 'absent') {
- fail('$artifacts_cleaner_ensure must be either present or absent.')
- }
+ validate_re($artifacts_cleaner_ensure, '^present|absent$')
if $artifacts_cleaner_ensure == 'present' {
validate_string(