mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #41288 from liquidgecka/develop
Only deal with integer bits in win_service.py.
This commit is contained in:
commit
eecf2a81b7
@ -717,7 +717,7 @@ def modify(name,
|
||||
if service_type is not win32service.SERVICE_NO_CHANGE:
|
||||
flags = list()
|
||||
for bit in SERVICE_TYPE:
|
||||
if service_type & bit:
|
||||
if isinstance(bit, int) and service_type & bit:
|
||||
flags.append(SERVICE_TYPE[bit])
|
||||
|
||||
changes['ServiceType'] = flags if flags else service_type
|
||||
|
Loading…
Reference in New Issue
Block a user