saltstack/salt — pull request #4528 by lesnail (2013-04-17 22:22:18+00:00)
Title: added service support for opensuse

got this error previously:

State: - service
Name: ntp
Function: running
Result: False
Comment: An exception occured in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/state.py", line 1214, in call
*cdata['args'], **cdata['kwargs'])
File "/usr/lib/python2.7/site-packages/salt/states/service.py", line 258, in running
ret = _available(name, ret)
File "/usr/lib/python2.7/site-packages/salt/states/service.py", line 219, in _available
ret['available'] = __salt__['service.available'](name)
File "/usr/lib/python2.7/site-packages/salt/modules/service.py", line 141, in available
return name in get_all()
File "/usr/lib/python2.7/site-packages/salt/modules/service.py", line 128, in get_all
if not os.path.isdir(GRAINMAP[__grains__['os']]):
KeyError: 'openSUSE'

Changes: