]> gitweb.fluxo.info Git - puppet-sshkeys_core.git/commit
(PUP-10510) Fix sshkeys not being correctly purged
authorGabriel Nagy <gabriel.nagy@puppet.com>
Wed, 27 May 2020 14:01:20 +0000 (17:01 +0300)
committerGabriel Nagy <gabriel.nagy@puppet.com>
Wed, 27 May 2020 14:41:49 +0000 (17:41 +0300)
commit2e059d49fbd48d0c4897518941f6a2b65785852a
tree1cc75fa35c2595f39e54514f75812dd6c2b634ca
parent9b2d2aab210360b785370cd982f50ba5ffd2b53f
(PUP-10510) Fix sshkeys not being correctly purged

After adding support for composite namevars in version 2.0.0, the module
lost the ability to purge sshkeys. This happens due to Puppet being
unable to correctly match the names and types of the sshkeys to be
purged.

Part of the fix was done in
https://github.com/puppetlabs/puppet/pull/8174, which changes how a
resource is initialized if the provider implements a `title` method.

Additionally, we add the key name and type to be included in the output
shown by `puppet resource`.
lib/puppet/provider/sshkey/parsed.rb
lib/puppet/type/sshkey.rb
spec/acceptance/tests/resource/sshkey/purge_spec.rb [new file with mode: 0644]