saltstack/salt — pull request #1695 by akhayyat (2012-07-26 09:21:10+00:00)
Title: Fix service.running when a service is stopped

When the service corresponding to a service.running state is stopped and needs to be started, the following error occurs:

Function: running
Result: False
Comment: An exception occured in this state: Traceback (most recent call last):
File ".../salt/state.py", line 823, in call
ret = self.states[cdata['full']](*cdata['args'])
File ".../salt/states/service.py", line 243, in running
if not name in services:
TypeError: argument of type 'function' is not iterable

This commit, suggested by mrud on irc, appears to fix that error.