forked from shaba/openuds
Removed "experimental" from AD group on OS Manager and fix on actor runner
This commit is contained in:
parent
afa9e0aab6
commit
8e3d90e7f3
@ -41,6 +41,8 @@ from .service import UDSActorSvc
|
|||||||
def setupRecoverService():
|
def setupRecoverService():
|
||||||
svc_name = UDSActorSvc._svc_name_ # pylint: disable=protected-access
|
svc_name = UDSActorSvc._svc_name_ # pylint: disable=protected-access
|
||||||
|
|
||||||
|
hs = None
|
||||||
|
hscm = None
|
||||||
try:
|
try:
|
||||||
hscm = win32service.OpenSCManager(None, None, win32service.SC_MANAGER_ALL_ACCESS)
|
hscm = win32service.OpenSCManager(None, None, win32service.SC_MANAGER_ALL_ACCESS)
|
||||||
|
|
||||||
@ -57,9 +59,11 @@ def setupRecoverService():
|
|||||||
}
|
}
|
||||||
win32service.ChangeServiceConfig2(hs, win32service.SERVICE_CONFIG_FAILURE_ACTIONS, service_failure_actions)
|
win32service.ChangeServiceConfig2(hs, win32service.SERVICE_CONFIG_FAILURE_ACTIONS, service_failure_actions)
|
||||||
finally:
|
finally:
|
||||||
win32service.CloseServiceHandle(hs)
|
if hs:
|
||||||
|
win32service.CloseServiceHandle(hs)
|
||||||
finally:
|
finally:
|
||||||
win32service.CloseServiceHandle(hscm)
|
if hscm:
|
||||||
|
win32service.CloseServiceHandle(hscm)
|
||||||
|
|
||||||
|
|
||||||
def run() -> None:
|
def run() -> None:
|
||||||
|
@ -100,7 +100,7 @@ class WinDomainOsManager(WindowsOsManager):
|
|||||||
label=_('Machine Group'),
|
label=_('Machine Group'),
|
||||||
order=7,
|
order=7,
|
||||||
tooltip=_(
|
tooltip=_(
|
||||||
'Group to which add machines on creation. If empty, no group will be used. (experimental)'
|
'Group to which add machines on creation. If empty, no group will be used.'
|
||||||
),
|
),
|
||||||
tab=_('Advanced'),
|
tab=_('Advanced'),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user