mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Merge pull request #44295 from HeinleinSupport/issue44272
fixes issue #44272
This commit is contained in:
commit
bebc33daf5
@ -444,8 +444,9 @@ def stop(name):
|
|||||||
try:
|
try:
|
||||||
win32serviceutil.StopService(name)
|
win32serviceutil.StopService(name)
|
||||||
except pywintypes.error as exc:
|
except pywintypes.error as exc:
|
||||||
raise CommandExecutionError(
|
if exc[0] != 1062:
|
||||||
'Failed To Stop {0}: {1}'.format(name, exc[2]))
|
raise CommandExecutionError(
|
||||||
|
'Failed To Stop {0}: {1}'.format(name, exc[2]))
|
||||||
|
|
||||||
attempts = 0
|
attempts = 0
|
||||||
while info(name)['Status'] in ['Running', 'Stop Pending'] \
|
while info(name)['Status'] in ['Running', 'Stop Pending'] \
|
||||||
|
Loading…
Reference in New Issue
Block a user