File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
lib/puppet/provider/apt_key Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -177,29 +177,7 @@ def tempfile(content)
177177 file
178178 end
179179
180- # Update a key if it is expired
181- def update_expired_key
182- # Return without doing anything if refresh or expired is false
183- return unless resource [ :refresh ] == true && resource [ :expired ] == true
184-
185- # Execute command to update key
186- command = [ ]
187-
188- unless resource [ :source ] . nil? && resource [ :content ] . nil?
189- raise ( _ ( 'an unexpected condition occurred while trying to add the key: %{_resource}' ) % { _resource : resource [ :id ] } )
190- end
191-
192- # Breaking up the command like this is needed because it blows up
193- # if --recv-keys isn't the last argument.
194- command . push ( 'adv' , '--no-tty' , '--keyserver' , resource [ :server ] )
195- unless resource [ :options ] . nil?
196- command . push ( '--keyserver-options' , resource [ :options ] )
197- end
198- command . push ( '--recv-keys' , resource [ :id ] )
199- end
200-
201180 def exists?
202- update_expired_key
203181 # report expired keys as non-existing when refresh => true
204182 @property_hash [ :ensure ] == :present && !( resource [ :refresh ] && @property_hash [ :expired ] )
205183 end
You can’t perform that action at this time.
0 commit comments