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:
Justin Findlay 2015-12-04 17:19:11 -07:00
commit 129f45f7c3

View file

@ -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