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

Fix DC selection logging

This commit is contained in:
Игорь Чудов 2020-09-09 19:57:46 +04:00
parent 828f6099da
commit 41de03e6e8
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -36,8 +36,9 @@ def backend_factory(dc, username, is_machine, no_domain = False):
if config.get_backend() == 'samba' and not no_domain:
if not dc:
dc = config.get_dc()
ld = dict({'dc': dc})
log('D52', ld)
if dc:
ld = dict({'dc': dc})
log('D52', ld)
sc = smbcreds(dc)
domain = sc.get_domain()
ldata = dict({'domain': domain})