From 34387c08a8f9c080eb02b2e4d07b8ba85e4228b6 Mon Sep 17 00:00:00 2001 From: Christer Ekholm Date: Sun, 12 Jul 2020 20:54:39 +0200 Subject: [PATCH] Remove unnecessary test on $service_ensure $service_ensure is required by init.pp to have type Stdlib::Ensure::Service, so there is no need for this test. --- manifests/service.pp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/manifests/service.pp b/manifests/service.pp index bc29d7e..76d3b79 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -7,10 +7,6 @@ $service_manage = $chrony::service_manage, $service_name = $chrony::service_name, ) inherits chrony { - unless $service_ensure in ['running', 'stopped'] { - fail('service_ensure parameter must be running or stopped') - } - if $service_manage { service { $service_name: ensure => $service_ensure,