From 56225b3a6ff6cdb748d53863285b4ce271cf36bc Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 16 May 2013 17:52:21 -0700 Subject: [PATCH] win_service mod: status -> statuses, to avoid shadowing same-named func --- salt/modules/win_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/win_service.py b/salt/modules/win_service.py index 0007b68a59..99229daacb 100644 --- a/salt/modules/win_service.py +++ b/salt/modules/win_service.py @@ -184,8 +184,8 @@ def status(name, sig=None): salt '*' service.status [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: