canonical / ubuntu-pro-client

Ubuntu Pro Client for offerings from Canonical
https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/
GNU General Public License v3.0
52 stars 73 forks source link

livepatch: fix delta check for enableByDefault #3064

Closed lucasmoura closed 5 months ago

lucasmoura commented 5 months ago

Why is this needed?

On the process_contract_deltas function, there is a check to see if the entitlement delta has an enableByDefault directive. However, there was a typo on when fetching that value from the delta dict. We are now fixing this typo and adding an unittest for it

Test Steps

check the new unittest for this change

Checklist

Does this PR require extra reviews?

github-actions[bot] commented 5 months ago

Jira: This PR is not related to a Jira item. (The PR title does not include a SC-#### reference)

GitHub Issues: No GitHub issues are fixed by this PR. (No commits have Fixes: #### references)

Launchpad Bugs: No Launchpad bugs are fixed by this PR. (No commits have LP: #### references)

Documentation: The changes in this PR do not require documentation changes.

👍 this comment to confirm that this is correct.