Skip to content

Commit

Permalink
Merge pull request #454 from cocker-cc/Accept_Datatype_Sensitive
Browse files Browse the repository at this point in the history
Accept Datatype Sensitive
  • Loading branch information
daianamezdrea authored Jun 28, 2021
2 parents 10a2a6d + 4ff7dbf commit e477827
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/puppet/type/ini_setting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def munge_boolean_md5(value)
desc 'The value of the setting to be defined.'

munge do |value|
value = value.unwrap if value.respond_to?(:unwrap)
if ([true, false].include? value) || value.is_a?(Numeric)
value.to_s
else
Expand Down

0 comments on commit e477827

Please sign in to comment.