Add support for SLES
On SLE 15 SP1: ``distro.linux_distribution(full_distribution_name=False)`` returns ``('sles', '15.1', 'n/a')``. "sles" should be considered equivalent to "suse" and any openSUSE variant for the purpose of network configuration, so this change ensures that _is_suse handles it. Depends-on: https://review.opendev.org/696989 Change-Id: Ie123b8bd875b401d88235af6d241bad84415fc3d
This commit is contained in:
parent
82e111f769
commit
403646c20d
|
@ -76,8 +76,8 @@ def _exists_rh_interface(name, distro):
|
|||
|
||||
def _is_suse(distro):
|
||||
# 'distro could be any of suse, opensuse,
|
||||
# opensuse-leap, opensuse-tumbleweed
|
||||
return 'suse' in distro
|
||||
# opensuse-leap, opensuse-tumbleweed, sles
|
||||
return 'suse' in distro or 'sles' in distro
|
||||
|
||||
|
||||
def _network_files(distro):
|
||||
|
|
Loading…
Reference in New Issue