Skip to content

Commit

Permalink
Recognize SLE-Micro as a SLE based distribution (#3048)
Browse files Browse the repository at this point in the history
Using the agent with SLE-Micro forces the agent to fallback to the common
default implementation for nominally distribution specific behavior. This
misses the SUSE specific implementations.

Co-authored-by: Nageswara Nandigam <84482346+nagworld9@users.noreply.github.com>
  • Loading branch information
rjschwei and nagworld9 authored Feb 22, 2024
1 parent f27b7b2 commit df7be2d
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 @@ -89,7 +89,7 @@ def _get_osutil(distro_name, distro_code_name, distro_version, distro_full_name)
if distro_name in ("flatcar", "coreos") or distro_code_name in ("flatcar", "coreos"):
return CoreOSUtil()

if distro_name in ("suse", "sle_hpc", "sles", "opensuse"):
if distro_name in ("suse", "sle-micro", "sle_hpc", "sles", "opensuse"):
if distro_full_name == 'SUSE Linux Enterprise Server' \
and Version(distro_version) < Version('12') \
or distro_full_name == 'openSUSE' and Version(distro_version) < Version('13.2'):
Expand Down

0 comments on commit df7be2d

Please sign in to comment.