Skip to content

Commit

Permalink
Don't any2array "users" and "user_groups"
Browse files Browse the repository at this point in the history
this is a workaround for issue voxpupuli#208
voxpupuli#208
  • Loading branch information
n00by committed Jan 19, 2017
1 parent 781a80f commit f7d4fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/object/notification.pp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@

validate_string($host_name)
if $service_name { validate_string($service_name) }
if $users { $_users = any2array($users) } else { $_users = undef }
if $user_groups { $_user_groups = any2array($user_groups) } else { $_user_groups = undef }
if $users { $_users = $users } else { $_users = undef }
if $user_groups { $_user_groups = $user_groups } else { $_user_groups = undef }
if $times { validate_hash($times) }
if $command { validate_string($command) }
if $interval { validate_integer($interval) }
Expand Down

0 comments on commit f7d4fba

Please sign in to comment.