Skip to content

Commit

Permalink
Merge branch 'develop' into flatcar
Browse files Browse the repository at this point in the history
  • Loading branch information
narrieta authored Mar 10, 2023
2 parents d06982d + 5e53887 commit bff66e2
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 bff66e2

Please sign in to comment.