Skip to content

Commit

Permalink
Replaced references to type() function with is_string() for Puppet 3.…
Browse files Browse the repository at this point in the history
…7.x, which now reserves the "type" keyword for future use.

https://docs.puppetlabs.com/puppet/3.7/reference/lang_reserved.html#reserved-words
  • Loading branch information
Mike Dorman committed Sep 17, 2014
1 parent 4a2d576 commit e0c717f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
) inherits memcached::params {

# validate type and convert string to boolean if necessary
if type($manage_firewall) == 'String' {
if is_string($manage_firewall) {
$manage_firewall_bool = str2bool($manage_firewall)
} else {
$manage_firewall_bool = $manage_firewall
Expand Down

0 comments on commit e0c717f

Please sign in to comment.