summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppet.com>2017-08-31 16:59:39 -0700
committerHunter Haugen <hunter@puppet.com>2017-08-31 16:59:39 -0700
commitf6781af353a678601817e0f1cc0e3813ea79d952 (patch)
tree69e743538cbdda88b39e481be71fa1206bf829a3 /lib
parent7404ed3029b726ae9abbb9a4fc698090374bdf98 (diff)
parentb1071e486578c63a4d93911585e02be44e9efbed (diff)
Merge pull request #810 from eputnam/pw_hash_fix
(MODULES-5546) add check for pw_hash
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/functions/pw_hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/pw_hash.rb b/lib/puppet/parser/functions/pw_hash.rb
index 0deeb3a..adcc719 100644
--- a/lib/puppet/parser/functions/pw_hash.rb
+++ b/lib/puppet/parser/functions/pw_hash.rb
@@ -28,7 +28,7 @@ Puppet::Parser::Functions::newfunction(
are compatible before using this function.") do |args|
raise ArgumentError, "pw_hash(): wrong number of arguments (#{args.size} for 3)" if args.size != 3
args.map! do |arg|
- if arg.is_a? Puppet::Pops::Types::PSensitiveType::Sensitive
+ if (defined? Puppet::Pops::Types::PSensitiveType::Sensitive) && (arg.is_a? Puppet::Pops::Types::PSensitiveType::Sensitive)
arg.unwrap
else
arg