another fix of issue #2111

on Debian wheezy, salt-call -g |grep os_family
gives:
   os_family: debian

Which means that apt will not be used
(it checks os_family for 'Debian').

so i added  debian -> Debian into _OS_FAMILY_MAP

... this patch also contains 2 little pep8  fixes
This commit is contained in:
David Pravec 2012-12-17 18:13:17 +01:00
parent e6b247ad12
commit 826e7e4d66

View File

@ -390,6 +390,7 @@ def _ps(osdata):
grains['ps'] = 'ps -efH'
return grains
def _windows_platform_data(osdata):
'''
Use the platform module for as much as we can.
@ -457,6 +458,7 @@ _OS_NAME_MAP = {
# Map the 'os' grain to the 'os_family' grain
_OS_FAMILY_MAP = {
'debian': 'Debian',
'Ubuntu': 'Debian',
'Fedora': 'RedHat',
'CentOS': 'RedHat',