diff options
-rw-r--r-- | lib/puppet/parser/functions/ensure_resources.rb | 2 | ||||
-rw-r--r-- | types/compat/bool.pp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/parser/functions/ensure_resources.rb b/lib/puppet/parser/functions/ensure_resources.rb index 30d57a8..b3c51e6 100644 --- a/lib/puppet/parser/functions/ensure_resources.rb +++ b/lib/puppet/parser/functions/ensure_resources.rb @@ -36,7 +36,7 @@ ENDOFDOC params ||= {} if title.is_a?(Hash) - resource_hash = Hash(title) + resource_hash = title.dup resources = resource_hash.keys Puppet::Parser::Functions.function(:ensure_resource) diff --git a/types/compat/bool.pp b/types/compat/bool.pp index dda5f4b..5d8e27e 100644 --- a/types/compat/bool.pp +++ b/types/compat/bool.pp @@ -1,2 +1,2 @@ - # Emulate the is_bool and validate_bool functions - type Stdlib::Compat::Bool = Boolean +# Emulate the is_bool and validate_bool functions +type Stdlib::Compat::Bool = Boolean |