Skip to content

Commit

Permalink
fix if command in rhel v8.6+ (Azure#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 authored Jul 5, 2022
1 parent ee630fd commit e540728
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 @@ -106,7 +106,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 e540728

Please sign in to comment.