File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,13 @@ def insync?(is)
104
104
unlocking. Must be six or more characters in length. Cannot be used
105
105
together with :password_file, but you must pass at least one of these parameters.'
106
106
107
+ munge do |value |
108
+ value = value . unwrap if value . respond_to? ( :unwrap )
109
+ super ( value )
110
+ end
111
+
107
112
validate do |value |
113
+ value = value . unwrap if value . respond_to? ( :unwrap )
108
114
raise Puppet ::Error , "password is #{ value . length } characters long; must be 6 characters or greater in length" if value . length < 6
109
115
end
110
116
end
@@ -127,7 +133,13 @@ def insync?(is)
127
133
newparam ( :destkeypass ) do
128
134
desc 'The password used to protect the key in keystore.'
129
135
136
+ munge do |value |
137
+ value = value . unwrap if value . respond_to? ( :unwrap )
138
+ super ( value )
139
+ end
140
+
130
141
validate do |value |
142
+ value = value . unwrap if value . respond_to? ( :unwrap )
131
143
raise Puppet ::Error , "destkeypass is #{ value . length } characters long; must be of length 6 or greater" if value . length < 6
132
144
end
133
145
end
@@ -160,6 +172,11 @@ def value=(*values)
160
172
end
161
173
162
174
newparam ( :source_password ) do
175
+ munge do |value |
176
+ value = value . unwrap if value . respond_to? ( :unwrap )
177
+ super ( value )
178
+ end
179
+
163
180
desc 'The source keystore password'
164
181
end
165
182
You can’t perform that action at this time.
0 commit comments