mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #29435 from galet/2015.8
Grains return wrong OS version and other OS related values for Oracle Linux
This commit is contained in:
commit
129f45f7c3
1 changed files with 1 additions and 1 deletions
|
@ -1030,7 +1030,7 @@ def _parse_os_release():
|
|||
with salt.utils.fopen(filename) as ifile:
|
||||
regex = re.compile('^([\\w]+)=(?:\'|")?(.*?)(?:\'|")?$')
|
||||
for line in ifile:
|
||||
match = regex.match(line.strip('\n'))
|
||||
match = regex.match(line.strip())
|
||||
if match:
|
||||
# Shell special characters ("$", quotes, backslash, backtick)
|
||||
# are escaped with backslashes
|
||||
|
|
Loading…
Add table
Reference in a new issue