Skip to content

Commit f6781af

Browse files
committed
Merge pull request #810 from eputnam/pw_hash_fix
(MODULES-5546) add check for pw_hash
2 parents 7404ed3 + b1071e4 commit f6781af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/parser/functions/pw_hash.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
are compatible before using this function.") do |args|
2929
raise ArgumentError, "pw_hash(): wrong number of arguments (#{args.size} for 3)" if args.size != 3
3030
args.map! do |arg|
31-
if arg.is_a? Puppet::Pops::Types::PSensitiveType::Sensitive
31+
if (defined? Puppet::Pops::Types::PSensitiveType::Sensitive) && (arg.is_a? Puppet::Pops::Types::PSensitiveType::Sensitive)
3232
arg.unwrap
3333
else
3434
arg

0 commit comments

Comments
 (0)