Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
PUP 7.6.0
-
Needs Assessment
-
Enhancement
-
-
Needs Assessment
Description
Puppet Version: 7.6.0
Two instances of lib/puppet/pops/types/p_sensitive_type.rb Sensitive with the same value are not equal. The class is just using default object id for equality.
Desired Behavior:
jpartlow@work1804:~/work/src/puppet$ puppet apply -e '$a = Sensitive("secret"); $b = Sensitive("secret"); notice($a == $b)'
|
Notice: Scope(Class[main]): true
|
Notice: Compiled catalog for work1804.platform9.puppet.net in environment production in 0.03 seconds
|
Notice: Applied catalog in 0.08 seconds
|
Actual Behavior:
jpartlow@work1804:~/work/src/puppet$ puppet apply -e '$a = Sensitive("secret"); $b = Sensitive("secret"); notice($a == $b)'
|
Notice: Scope(Class[main]): false
|
Notice: Compiled catalog for work1804.platform9.puppet.net in environment production in 0.03 seconds
|
Notice: Applied catalog in 0.08 seconds
|