Skip to content

Commit

Permalink
Change munge to validate.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanliu committed Aug 17, 2012
1 parent 1f6bf0f commit 4e2a99e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/type/rz_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

newproperty(:tags, :array_matching => :all) do
desc "The policy tags."
munge do |value|
[ value ] unless value.is_a? Array
validate do |value|
raise Puppet::Error, "Tags must be an Array value: #{value}." unless value.is_a? Array
end
end

Expand Down

0 comments on commit 4e2a99e

Please sign in to comment.