MODULES-10956 remove redundant code in provider apt_key
authorMoritz Kraus <moritz.kraus@makandra.de>
Wed, 24 Feb 2021 14:29:19 +0000 (15:29 +0100)
committerMoritz Kraus <moritz.kraus@makandra.de>
Wed, 24 Feb 2021 15:08:11 +0000 (16:08 +0100)
commit49fda9c00394544b509cbea813d3907934b4a64c
tree0a8e76739f94e52fc9c1ff525b1aef3ae4aa2508
parent683771de88c9a56b6d5ec3a857fcaf2dfae38628
MODULES-10956 remove redundant code in provider apt_key

The code in function `update_expired_key` is redundant to the logic in
the function `create`. The call to function `exist` will mark the key as
absent, in case it has expired and refres is set to true.

I debugged for hours why my keys weren't updated until I realized, that
the functionality is elsewhere.
lib/puppet/provider/apt_key/apt_key.rb