Skip to content

Commit

Permalink
fetch full distro version for mariner (#2773)
Browse files Browse the repository at this point in the history
* fetch full distro version for mariner

* address comment
  • Loading branch information
nagworld9 authored Mar 9, 2023
1 parent 0583078 commit 5e53887
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azurelinuxagent/common/future.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ def get_linux_distribution_from_distro(get_full_name):
)
full_name = distro.linux_distribution()[0].strip()
osinfo.append(full_name)

# 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 "mariner" in osinfo[0].lower():
osinfo[1] = distro.version(best=True)

return osinfo


Expand Down

0 comments on commit 5e53887

Please sign in to comment.