-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: PUP 4.6.2
-
Component/s: None
-
Labels:None
-
Template:customfield_10700 149711
-
Acceptance Criteria:
-
Story Points:1
-
Sprint:Language 2016-09-07
-
Release Notes:Bug Fix
-
Release Notes Summary:It was not possible to pass values of Sensitive data type to classes and user defined resources as they were erroneously transformed to String values.
When applying this:
class toe(Sensitive[String] $x) { |
notice $x |
}
|
class { toe: x => Sensitive('ouch') } |
It results in the error:
Error while evaluating a Resource Statement, Class[Toe]: parameter 'x' expects a Sensitive value, got String at /Users/henrik/git/puppet/sensitive.pp:4:1
|
This is probably because of the transformation to 3.x values that only allows certain data types to pass into the 3.x compiler logic.
- relates to
-
PUP-6672 Acceptance: Add test for Sensitive data in defined types and classes
-
- Closed
-