Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODULES-10956 remove redundant code in provider apt_key #973

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

moritz-makandra
Copy link

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.

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.
@moritz-makandra moritz-makandra requested a review from a team as a code owner February 24, 2021 15:14
@codecov
Copy link

codecov bot commented Feb 24, 2021

Codecov Report

Merging #973 (49fda9c) into main (613b880) will increase coverage by 1.62%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #973      +/-   ##
==========================================
+ Coverage   71.10%   72.72%   +1.62%     
==========================================
  Files           5        5              
  Lines         263      253      -10     
==========================================
- Hits          187      184       -3     
+ Misses         76       69       -7     
Impacted Files Coverage Δ
lib/puppet/provider/apt_key/apt_key.rb 56.80% <ø> (+1.98%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 683771d...49fda9c. Read the comment docs.

@CLAassistant
Copy link

CLAassistant commented Feb 24, 2021

CLA assistant check
All committers have signed the CLA.

@pmcmaw
Copy link

pmcmaw commented Mar 8, 2021

Closing and reopening PR, to see if the pr_test workflow is kicked off.

@pmcmaw pmcmaw closed this Mar 8, 2021
@pmcmaw pmcmaw reopened this Mar 8, 2021
@pmcmaw
Copy link

pmcmaw commented Mar 8, 2021

I would like to thank you for taking the time and effort to create this PR.
Your contributions to Puppet is as always, much appreciated.
Merging.

@pmcmaw pmcmaw merged commit 5b4d85e into puppetlabs:main Mar 8, 2021
@pmcmaw pmcmaw added the bugfix label Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants