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 @@ -106,7 +106,13 @@ def insync?(is)
106
106
unlocking. Must be six or more characters in length. Cannot be used
107
107
together with :password_file, but you must pass at least one of these parameters.'
108
108
109
+ munge do |value |
110
+ value = value . unwrap if value . respond_to? ( :unwrap )
111
+ super ( value )
112
+ end
113
+
109
114
validate do |value |
115
+ value = value . unwrap if value . respond_to? ( :unwrap )
110
116
raise Puppet ::Error , "password is #{ value . length } characters long; must be 6 characters or greater in length" if value . length < 6
111
117
end
112
118
end
@@ -129,7 +135,13 @@ def insync?(is)
129
135
newparam ( :destkeypass ) do
130
136
desc 'The password used to protect the key in keystore.'
131
137
138
+ munge do |value |
139
+ value = value . unwrap if value . respond_to? ( :unwrap )
140
+ super ( value )
141
+ end
142
+
132
143
validate do |value |
144
+ value = value . unwrap if value . respond_to? ( :unwrap )
133
145
raise Puppet ::Error , "destkeypass is #{ value . length } characters long; must be of length 6 or greater" if value . length < 6
134
146
end
135
147
end
@@ -162,6 +174,11 @@ def value=(*values)
162
174
end
163
175
164
176
newparam ( :source_password ) do
177
+ munge do |value |
178
+ value = value . unwrap if value . respond_to? ( :unwrap )
179
+ super ( value )
180
+ end
181
+
165
182
desc 'The source keystore password'
166
183
end
167
184
You can’t perform that action at this time.
0 commit comments