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

fetch full distro version for mariner #2773

Merged
merged 4 commits into from
Mar 9, 2023

Conversation

nagworld9
Copy link
Contributor

Description

Addressing the issue #2715. distro.linux_distribution() not returning full distro version.

Issue #


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines

@codecov
Copy link

codecov bot commented Mar 4, 2023

Codecov Report

Merging #2773 (7264f88) into develop (0583078) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #2773      +/-   ##
===========================================
- Coverage    71.99%   71.99%   -0.01%     
===========================================
  Files          104      104              
  Lines        15839    15841       +2     
  Branches      2265     2266       +1     
===========================================
  Hits         11404    11404              
- Misses        3913     3914       +1     
- Partials       522      523       +1     
Impacted Files Coverage Δ
azurelinuxagent/common/future.py 36.36% <0.00%> (-0.85%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


# Fixing is the problem https://github.com/Azure/WALinuxAgent/issues/2715. Distro.linux_distribution method not retuning full version
# If best is true, the most precise version number out of all examined sources is returned.
if osinfo and "mariner" in osinfo[0].lower():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a check for None on distro? is it needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like in this context, it's not needed. Initially thought, we may have empty list but above we are appending some value. So, it will never be empty. I'll update

@nagworld9 nagworld9 merged commit 5e53887 into Azure:develop Mar 9, 2023
@nagworld9 nagworld9 deleted the distro-version branch March 9, 2023 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants