Skip to content

Commit

Permalink
Fix pylint warning (#2988)
Browse files Browse the repository at this point in the history
Co-authored-by: narrieta <narrieta>
  • Loading branch information
narrieta authored Nov 20, 2023
1 parent ce17d9b commit da32899
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 @@ -73,7 +73,7 @@ def _get_osutil(distro_name, distro_code_name, distro_version, distro_full_name)
return Ubuntu14OSUtil()
if ubuntu_version in [Version('16.04'), Version('16.10'), Version('17.04')]:
return Ubuntu16OSUtil()
if ubuntu_version >= Version('18.04') and ubuntu_version <= Version('24.04'):
if Version('18.04') <= ubuntu_version <= Version('24.04'):
return Ubuntu18OSUtil()
if distro_full_name == "Snappy Ubuntu Core":
return UbuntuSnappyOSUtil()
Expand Down

0 comments on commit da32899

Please sign in to comment.