Skip to content

Commit

Permalink
Allow other time units in notification::interval and scheduleddowntim…
Browse files Browse the repository at this point in the history
…e::duration
  • Loading branch information
jkroepke committed Jan 28, 2017
1 parent ff8ed2f commit 27ca964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/object/notification.pp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
if !is_string($user_groups) { validate_array($user_groups) }
if $times { validate_hash ($times )}
if $command { validate_string ($command )}
if $interval { validate_integer ($interval )}
if $interval { validate_re($interval, '^\d+(\.\d+)?[dhms]?$')}
if $period { validate_string ($period )}
if $zone { validate_string ($zone) }
if !is_array($types) { validate_string($types) }
Expand Down
2 changes: 1 addition & 1 deletion manifests/object/scheduleddowntime.pp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
if $author { validate_string($author) }
if $comment { validate_string($comment) }
if $fixed { validate_bool($fixed) }
if $duration { validate_integer($duration) }
if $duration { validate_re($duration, '^\d+(\.\d+)?[dhms]?$') }
if $ranges { validate_hash($ranges) }

# compose attributes
Expand Down

0 comments on commit 27ca964

Please sign in to comment.