saltstack/salt — pull request #2524 by archtaku (2012-11-12 00:35:38+00:00)
Title: Fix LSB distro detection

OpenSUSE 12.2 has odd output from platform.linux_distribution(), as can
be seen below:

>>> platform.linux_distribution()
('openSUSE ', '12.2', 'x86_64')

Notice the trailing space after openSUSE. This causes the lookup in
_OS_FAMILY_MAP to fail, causing the os_family grain to be set to
'openSUSE ' instead of 'Suse'. By stripping leading and trailing
whitespace from the values returned by platform_linux_distribution(),
this issue is fixed.