mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
better way to check for openSUSE Leap
This commit is contained in:
parent
548971bdc9
commit
72c8e5d78f
1 changed files with 1 additions and 1 deletions
|
@ -1180,7 +1180,7 @@ def os_data():
|
|||
if ":suse:" in os_release['CPE_NAME'] or ":opensuse:" in os_release['CPE_NAME']:
|
||||
grains['os'] = "SUSE"
|
||||
# openSUSE `osfullname` grain normalization
|
||||
if grains['lsb_distrib_release'] == "42.1":
|
||||
if os_release.get("NAME") == "openSUSE Leap":
|
||||
grains['osfullname'] = "Leap"
|
||||
elif os_release.get("VERSION") == "Tumbleweed":
|
||||
grains['osfullname'] = os_release["VERSION"]
|
||||
|
|
Loading…
Add table
Reference in a new issue