Fix pillar checks for minion that are pre "os_family"

This commit is contained in:
Thomas S Hatch 2012-08-15 18:46:24 -06:00
parent 6c0cf5891e
commit 0c1b60d710

View File

@ -7,7 +7,7 @@ def __virtual__():
'''
Set the virtual pkg module if the os is openSUSE
'''
return 'pkg' if __grains__['os_family'] == 'Suse' else False
return 'pkg' if __grains__.get('os_family', '') == 'Suse' else False
def _list_removed(old, new):