We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7404ed3 + b1071e4 commit f6781afCopy full SHA for f6781af
lib/puppet/parser/functions/pw_hash.rb
@@ -28,7 +28,7 @@
28
are compatible before using this function.") do |args|
29
raise ArgumentError, "pw_hash(): wrong number of arguments (#{args.size} for 3)" if args.size != 3
30
args.map! do |arg|
31
- if arg.is_a? Puppet::Pops::Types::PSensitiveType::Sensitive
+ if (defined? Puppet::Pops::Types::PSensitiveType::Sensitive) && (arg.is_a? Puppet::Pops::Types::PSensitiveType::Sensitive)
32
arg.unwrap
33
else
34
arg
0 commit comments