Merge pull request #5077 from hulu/winserv-status-shadowing

win_service mod: status -> statuses, to avoid shadowing same-named func
This commit is contained in:
Thomas S Hatch 2013-05-16 22:13:30 -07:00
commit 9f1384f3b6

View File

@ -184,8 +184,8 @@ def status(name, sig=None):
salt '*' service.status <service name> [service signature]
'''
cmd = 'sc query "{0}"'.format(name)
status = __salt__['cmd.run'](cmd).splitlines()
for line in status:
statuses = __salt__['cmd.run'](cmd).splitlines()
for line in statuses:
if 'RUNNING' in line:
return getsid(name)
elif 'PENDING' in line: