Skip to content

Commit

Permalink
Remove unnecessary test on $service_ensure
Browse files Browse the repository at this point in the history
$service_ensure is required by init.pp to have type Stdlib::Ensure::Service, so there is
no need for this test.
  • Loading branch information
chrekh committed Jul 12, 2020
1 parent a124003 commit 34387c0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 34387c0

Please sign in to comment.