Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Update modules/govuk/lib/puppet/parser/functions/data_sync_times.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Gabbianelli <alan.gabbianelli@gmail.com>
  • Loading branch information
ChrisBAshton and AlanGabbianelli authored Oct 20, 2020
1 parent 6f9fbd8 commit a6681b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/govuk/lib/puppet/parser/functions/data_sync_times.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ module Puppet::Parser::Functions
start_hour = 22
start_minute = 0
finish_hour = 8
finish_minute = 0
finish_minute = 0
expected_args = 1

if args.size != 1
if args.size != expected_args
raise ArgumentError, "data_sync_times: Wrong number of arguments " +
"(given #{args.size})"
"(given #{args.size}, expected #{expected_args})"
end

type = args[0]
Expand All @@ -35,4 +36,3 @@ module Puppet::Parser::Functions
end
end
end

0 comments on commit a6681b3

Please sign in to comment.