1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Use backend factory instead of direct backend access

This commit is contained in:
Игорь Чудов 2019-12-10 18:56:56 +04:00
parent 41445bf3d4
commit 1f0714fc58
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -8,7 +8,7 @@ from samba import getopt as options
# Our native control facility
import util
from backend import samba_backend
from backend import backend_factory
import frontend
# Remove print() from code
@ -53,7 +53,7 @@ class gpoa_controller:
sid = util.get_sid(domain, username)
back = samba_backend(self.__lp, self.__creds, sid, dc, username)
back = backend_factory(self.__lp, self.__creds, sid, dc, username)
back.retrieve_and_store()
appl = frontend.applier(sid, username)