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:
parent
41445bf3d4
commit
1f0714fc58
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user