mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Only remove the word linux from distroname when its not part of the name
This will now still replace "CentOS Linux" with "CentOS" while leaving "CloudLinux" unmodified. Fixes #28951
This commit is contained in:
parent
35b7f62669
commit
885e00ba54
1 changed files with 1 additions and 1 deletions
|
@ -879,7 +879,7 @@ def id_():
|
|||
'''
|
||||
return {'id': __opts__.get('id', '')}
|
||||
|
||||
_REPLACE_LINUX_RE = re.compile(r'linux', re.IGNORECASE)
|
||||
_REPLACE_LINUX_RE = re.compile(r'\Wlinux', re.IGNORECASE)
|
||||
|
||||
# This maps (at most) the first ten characters (no spaces, lowercased) of
|
||||
# 'osfullname' to the 'os' grain that Salt traditionally uses.
|
||||
|
|
Loading…
Add table
Reference in a new issue