mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
Add support samba-4.17 python interface for gp.gpclass instead of gpclass.
This commit is contained in:
parent
be15051ba5
commit
8121eb8d6f
@ -18,7 +18,10 @@
|
||||
|
||||
import os
|
||||
# Facility to determine GPTs for user
|
||||
from samba.gpclass import check_safe_path
|
||||
try:
|
||||
from samba.gpclass import check_safe_path
|
||||
except ImportError:
|
||||
from samba.gp.gpclass import check_safe_path
|
||||
|
||||
from .applier_backend import applier_backend
|
||||
from storage import cache_factory, registry_factory
|
||||
|
@ -21,7 +21,12 @@ import os
|
||||
import subprocess
|
||||
from samba import getopt as options
|
||||
from samba import NTSTATUSError
|
||||
from samba.gpclass import get_dc_hostname, check_refresh_gpo_list
|
||||
|
||||
try:
|
||||
from samba.gpclass import get_dc_hostname, check_refresh_gpo_list
|
||||
except ImportError:
|
||||
from samba.gp.gpclass import get_dc_hostname, check_refresh_gpo_list
|
||||
|
||||
from samba.netcmd.common import netcmd_get_domain_infos_via_cldap
|
||||
import samba.gpo
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user