Skip to content

Commit

Permalink
fix if command in rhel v8.6+ (#2624) (#2630)
Browse files Browse the repository at this point in the history
(cherry picked from commit e540728)

Co-authored-by: Nageswara Nandigam <84482346+nagworld9@users.noreply.github.com>
  • Loading branch information
narrieta and nagworld9 authored Jul 11, 2022
1 parent 3866c69 commit 3a9fc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurelinuxagent/common/osutil/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _get_osutil(distro_name, distro_code_name, distro_version, distro_full_name)
if Version(distro_version) < Version("7"):
return Redhat6xOSUtil()

if Version(distro_version) == Version("8.6") or Version(distro_version) > Version("9"):
if Version(distro_version) >= Version("8.6"):
return RedhatOSModernUtil()

return RedhatOSUtil()
Expand Down

0 comments on commit 3a9fc45

Please sign in to comment.